Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialShen JIE LIN
10,612 PointsLaravel yaml paths problems
Hi, so I have successfully set up the yaml file to map to the laravel-basics project
However, I am now trying to create a new project called "personal-website" and I am trying to map it to that new project using the below set up, and it still map to the old project.
Any ideas on why???
Please help me
ip: "192.168.10.10" memory: 2048 cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys: - ~/.ssh/id_rsa
folders: - map: ~/Homestead/Projects to: /home/vagrant/Sites
sites: - map: laravel.dev to: /home/vagrant/Sites/personal-website/public
variables: - key: APP_ENV value: local
2 Answers
Philip Cox
14,818 PointsHi. Here is my code, you need to make multiple folder and site paths for each project. And add the path to your /etc/hosts file.
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /Users/Phil/.ssh/id_rsa.pub
keys:
- /Users/Phil/.ssh/id_rsa
folders:
- map: /Users/Phil/Homestead/Projects
to: /home/vagrant/Sites
- map: /Users/Phil/Homestead/Projects
to: /home/vagrant/Sites
- map: /Users/Phil/Homestead/Projects
to: /home/vagrant/Sites
- map: /Users/Phil/Homestead/Projects
to: /home/vagrant/Sites
- map: /Users/Phil/Homestead/Projects
to: /home/vagrant/Sites
sites:
- map: Laravel.dev
to: /home/vagrant/Sites/laravel-basics/public
- map: Laracast.dev
to: /home/vagrant/Sites/new-laracast/public
- map: Philip.dev
to: /home/vagrant/Sites/my-site/public
- map: laracast.todo
to: /home/vagrant/Sites/laracast-todo/public
- map: larabook.dev
to: /home/vagrant/Sites/larabook/public
variables:
- key: APP_ENV
value: local
James Ginns
2,731 PointsI tried this command, should something like "guest operations were attempted on a machine not ready for guest operations. This is a bug. Report it. Sigh.
thomascawthorn
22,986 Pointsthomascawthorn
22,986 PointsWhen you edit the Homestead.yaml file, you will also need to run
vagrant provision
in your terminal inside the Homestead directory (not in the vm). This will act like a 'refresh' telling vagrant to re-read this file.