My personalized Vagrant setup using vaprobash. vagrant-bindfs
required.
Uses vaprobash scripts to install only what I need:
- 14.04 box with 768 MB memory and 768 MB swap
- Nginx
- PHP with Composer
- MySQL & SQLite
- git-ftp
- Custom script installs zsh, antigen
- Box is on
192.168.22.10
(default) - host port
8337
forwards to VM at80
- host port
2222
forwards to VM at22
(default)
conf
dir syncs to/etc/nginx/conf.d
; nginx vhosts go herelog
dir syncs to/home/vagrant/log
; nginx vhost log files go herewww
dir syncs to/home/vagrant/www
- Clone repo:
git clone git@github.com:geekish/vaprozsh.git ~/vaprozsh
- Start the VM:
cd ~/vaprozsh && vagrant up
- Add your projects:
dev.conf
provides a wildcard*.dev
vhost pointing to~/www/*/public
- this just happens to be where all of my projects' public files are. You can edit this or add additional vhosts; see0-wordpress.conf
for an example.
I recommend using dnsmasq
to handle *.dev
, especially now that it's a registered TLD... thanks Google.
Check out the vaprobash docs for more information.