Coder Social home page Coder Social logo

Vagrant installation/setup steps about tj HOT 4 CLOSED

themejuice avatar themejuice commented on September 28, 2024
Vagrant installation/setup steps

from tj.

Comments (4)

ezekg avatar ezekg commented on September 28, 2024

Theme Juice will automatically install VVV (the default virtual machine for tj) inside of the ~/vagrant directory, so there should be no need for installing another VM i.e. vagrant init hashicorp/precise32.

Did you already have a VM installed in that directory? And just to make sure, you do have VirtualBox installed, correct? If so, try removing ~/vagrant and running a tj create from any directory. The first thing it should do is install and configure VVV, then create your first project.

If that doesn't work, if you wouldn't mind posting a gist of your create prompts/inputs as well as all of the output from vagrant.

from tj.

wandl avatar wandl commented on September 28, 2024

Hi @ezekg ,

That worked thanks for all the help I really appreciate it.

Initially when I first ran tj create I had a lot of permission problems with my local .rvm and .npm packages so I had to resolve that, I am guessing that the ~/vagrant directory only got partially setup.

Deleting the vagrant installation seems to have fixed the problem as I can see a many more files have been added in the various directories.

Some suggestions:

With such an intensive setup and the vagrant step being so critical maybe adding some checks at various points to make sure certain things have happened might be good like write a .lockfile that is removed after successful setup if present means that vagrant needs a wipe.

The post provisioning scripts seem pretty hefty be good if you could pick and choose what to install in the VM. For example do not install Wordpress Stable or Dev

I also think that being able to select a linux distro would be good feature but I guess this adds a lot of complexity to things :)

I did see some errors towards the end about Grunt not being installed and phpmyadmin failed to download gist is here:
https://gist.github.com/wandl/b1ef47cf4fed2d1e859e

from tj.

ezekg avatar ezekg commented on September 28, 2024

No problem. I'm going to go ahead and close this issue up. Permissions are always going to be an issue, so I'll try and add something in the docs about that in the future. As for the rest of your concerns, tj already has a pretty hefty amount of checks; you happened to just hit one of which I'm not entirely keen on doing, and that is checking whether or not the VM is 'installed' or not.

Since it's possible to pass in any VM that follows the VVV file-structure with the --vm-box flag, having to keep up with what it means file-wise for a VM to be 'installed' e.g. do I check for a Vagrantfile, sites within www/, or something else? (It would actually be entirely dependent on the VM, because it could be set up oddly, and I don't want to force a certain way of doing things more than the file-structure.)

As it is now, tj assumes that if there is anything inside ~/vagrant (or whatever is passed to --vm-path), it's a Vagrant installation that is compatible with VVV; and if there's nothing inside ~/vagrant, then it will clone VVV into that directory and provision it. I'd prefer to keep it as simple as possible, to avoid a future maintenance headache (it can happen quickly.)

As for the default WordPress stable/dev sites, I chose not to remove those for the simple reason that I do not want to modify the VM directly. All changes made by tj are changes to files that are meant to be modified, and are ignored within the main VVV repository, such as the Customfile, init-custom.sql, etc.

This ensures that at any time you can do a git pull to update your VVV installation without any merge conflicts. If tj removed those default sites, you'd get conflicts out the wazoo and be unable to fetch the latest changes without a considerable amount of work.

Lastly, you mentioned a couple issues with the provision seeming long (it definitely is!) and also some errors. Those should be filed on the VVV-Apache repo, as that is an issue with the VM box and not tj. 👍

from tj.

ezekg avatar ezekg commented on September 28, 2024

@wandl Just following up to make sure everything is going good. Let me know if you need any help. I'm going to try and record a getting started screencast soon. 👍

from tj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.