Opinionated Vagrant box, based on Scotch Box.
- Automatically add used domains (vhosts) to
/etc/hosts
- Database export on each
vagrant halt
orvagrant destroy
- Database import on first
vagrant up
- PHP 7.1
- Xdebug
- Webgrind (installed on
www.webgrind.test
) - Bundler
- Composer
- Subversion
- WP-CLI
- Enabled SSL module
- Clone this repo
- Run
vagrant up
inside the cloned directory
To add a project, create a config file inside the sites/
directory. An example config file for a project that uses the web/
directory as webroot:
example.conf
<VirtualHost *:80>
ServerName www.example.test
DocumentRoot /var/www/example/web
</VirtualHost>
You can run vagrant provision --provision-with vhosts
to only provision the available vhosts, without provisioning the entire box.
Some useful resources for commonly needed features:
- Mailtrap.io for mail testing
- Generating SSL certificates for local SSL testing