The Friendly Beasts' Vagrant setup.
- ubuntu/trusty64
- Apache2
- PHP5 (latest)
- Configured php.ini and apache2.conf
- VirtualBox
- Vagrant
- Place
Vagrantfileabove your site's root. vagrant upin your project dir.
By default, this will sync html to your Vagrant machine. You can change the default by editing this line:
ENV['SYNCED_FOLDER'] = "./html"You can also sync a different folder on a per-case basis. Just define an environment variable before vagrant up.
For example, after we run our Grunt build script, we end up with a dist dir next to html. To review the built version of the site before deploying, we run:
SYNCED_FOLDER="./dist" vagrant upIf you've already vagrant upped, it's significantly quicker to reload, than to destroy and re-up.
SYNCED_FOLDER="./dist" vagrant reload