Closed leth closed 10 years ago
If this helps I have one I set up a long time ago here: https://gist.github.com/mattpascoe/3828026
Its goal is not development but to install the latest release tarball. That can very easily be updated in the manifest to be a git checkout of the project and then start developing there. If you want you can fork mine and adjust the exec lines to do the git checkout instead of the tarball stuff.
Might be interesting to use the puphpet.com link to build out something as well. I was not aware of that tool.
Cool. An alternative to doing the git checkout within the VM is to mount the files into the VM using virtualbox or NFS. I've found vbox mounts to be very slow for PHP in the past, and changing to NFS is pretty simple.
Yes agreed. I currently develop using the following in my virtual box config. Apparently that wasn't in the gist I sent you.
config.vm.share_folder "data", "/data", "/data"
I personally check out everything into /data/code on my main system and then link that into my VM. I then point my apache at /data/code/ona/www/
and run it from there. For me I've not had any issues with slowness but I can see where that could be an issue in some cases.
A vagrant setup for this project would be pretty cool and I'm sure it'd help people get a development environment up and running. See: https://puphpet.com/