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 trial

PHP Laravel 4 Basics Getting Started with Laravel Installing Laravel Homestead

Pierce McGeough
Pierce McGeough
1,754 Points

Can I map my app to a folder outside of my Homestead folder.

Can I ahve my homestead folder with vagrant file etc and map those to my dev folder elsewhere on my system?

1 Answer

Andrew Shook
Andrew Shook
31,709 Points

Yes you can have Homestead map files to different folders on you computer. Located the homestead.yaml file inside the homestead folder. Inside that file you should see something like this:

folders:
    - map: ~/Homestead/Projects
      to: /home/vagrant/Sites

You can change the value of the map attribute to anywhere on you local machine. So for instance, I could map it to a Sites folder in my documents folder:

folders:
    - map: ~/Documents/My\ Documents/Sites
      to: /home/vagrant/Sites