Vagrant Workstation (mysql,lamp,node,lnmp)
The vagrant configuration file is setup to mount and share the /private/var/domains folder on osx as an NFS mount, we use this folder as the basis for creating virtual hosts on both nginx and apache. Trapeze is used to automate our virtual host creation, and responsible for parsing configuration files.
private/var/domains/
-sub.domain.com
--site.conf
--site.trapeze.conf
vagrant up web Starts & Provisions web server, mapped to:192.168.33.10
vagrant up db Starts & Provisions database server, mapped to:192.168.32.10
vagrant suspend web Powers off web server
vagrant suspend db Powers off database server, retains data
vagrant resume web Resumes/Starts web server
vagrant resume db Resume/Starts database server
vagrant ssh web SSH into web server
vagrant ssh db SSH into database server
Loading the site configurations is simple. Use the below commands.
vagrant ssh web
sudo php /var/scripts/trapeze/trapeze sites:scan
Traffic on the web box if forwarded from port 8011=>80 on the guest machine. To access from another device use domain.my.ip.xip.io or ex wcst.10.0.10.19.xip.io