Sample Homestead.yaml file for windows • Code Workshop
Code Workshop
11/23/2017
Share with
I use Vagrant/Homestead for PHP, WordPress, Laravel development at Code Workshop day in day out with no issues anymore about ‘developing on windows’. xdebug bolts up fine, and there’s far fewer issues when deploying to production because of the matching linux environment.
Here’s a cut down example of my homestead.yaml file that I use and update regularly.
- Notice the mapping of folder to vagrant folder to eventual site.
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox
authorize: c:/Users/codeworkshop/.ssh/id_rsa.pub
keys:
- c:/Users/codeworkshop/.ssh/id_rsa
folders:
- map: c:/projects/cart-recovery/www.cartrebound.com
to: /home/vagrant/Code/www.cartrebound.app
sites:
- map: www.cartrebound.app
to: /home/vagrant/Code/www.cartrebound.app
databases:
- codeworkshop