This might not be something that this project should do by default, but one that many users could use.
I work on many different projects at the same time, each with their own code repo.
But they don't need their own virtual machine instance.
If these projects are all in the same directory and follow some naming patterns, would it be possible for vagrant to automatically build vhosts.
Eg - Within the directory called public
With a folder structure something like this
public
--project_a
--www
--project_b
--www
Vagrant would automatically create vhosts at project_a.local and project_b.local, with matching databases.
And when project_c comes along, just adding it to this projects directory, and then running 'vagrant provision' should do the magic.
Or something like that...
Maybe this is too much to ask for, but any tips welcome.
Comments
Comment #1
christianchristensen commentedI believe everything is there to do what you need...
If you look at http://drupalcode.org/project/vagrant.git/blob/refs/heads/7.x-1.x:/Vagra... there is an array of items
["drupal.vbox.local", "dev-site.vbox.local"]if you just add your own (e.g.["drupal.vbox.local", "dev-site.vbox.local","projecta.local"]) this will do most of the heavy lifting in the virtual box (add /etc/hosts entry and vhosts config). You will just need to ensure that you follow the "magic" directory structure (e.g. "public/projecta.local/www").Comment #2
alanburke commentedExcellent!