bdcravens / railo-vagrant

Simple setup to launch a VM using Vagrant running Ubuntu 12.04 and Railo
15 stars 8 forks source link

Possible to separate railo-install from codebase? #7

Open atuttle opened 11 years ago

atuttle commented 11 years ago

I'd like to be able to run my railo-vagrant boxes (one for railo3, one for railo4) from the same codebase as my default apache install -- indeed, ultimately I'd like to move my current host-installed stuff (ACF10, ACF9, etc) into its own vagrant boxes...

So on my host I want, for example:

/users/adam/sites/localhost/ -- web content here

/users/adam/vagrant/railo3/  -- railo3 box stuff here
/users/adam/vagrant/railo4/  -- railo4 box stuff here
/users/adam/vagrant/.../     -- additional vagrant boxes

And I want all of these to share the web content so that I don't have to copy it all over the place.

I could share the folder into each VM, but I don't want the server-added stuff (e.g. WEB-INF folder) added to it, because then the different Railo versions will fight over its contents, they may mess each other up, and I'm not sure if OpenBD would also want to create its own WEB-INF (but I suspect it would)...

Am I missing something easy, here?

I tried symlinking my localhost folder as a subfolder of the code folder, but it shows inside the vm as an invalid symlink (as if I had created it within the vm as pointing to /users/adam/sites/localhost/ -- but obviously that doesn't exist)...

Any ideas?