Here is my YAML file :
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /home/username/projects/
to: /home/vagrant/projects/
sites:
- map: resume.local
to: /home/vagrant/projects/resume/public
- map: larabook.local
to: /home/vagrant/projects/larabook/public
- map: testlaravel.local
to: /home/vagrant/projects/testlaravel/public
variables:
- key: APP_ENV
value: local
Points to consider
Under folders map your actual development folders to one which you want on Homestead ( lets call them virtual for now.) So this (/home/username/projects/) is path to my actual development folder which maps to virtual (/home/vagrant/projects/) when VM is created.
Under sites , map your desired domain (resume.local) to the (virtual)folder on the VM. You can bind any no. of sites for now.
The only issue I face is , I cannot generate different tunneling urls for different sites on Homestead. You might want to check out Browser sync and FoodShow too.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community