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 trialDavid Labourdette
7,127 PointsPHP, htdocs, Google Drive
After installing MAMP on my mac, would it be possible to relocate my htdocs directory to google drive so that I can access it across different computers? Is there a downside to this?
1 Answer
Kevin Korte
28,149 PointsI'm not sure that would work, since MAMP is a localhost configuration -- don't quote me on this but I think the files have to also be on the local computer. A quick google search didn't turn up much for me to think otherwise.
There are solutions to this though. One is use Git. You can use Git to commit and save your changes. You can than use a free service like Github to set up a remote repository for each project. When you're done working on computer a, commit your changes to git, and push them to github. When you go to computer b, pull your latest changes from your github account, work, and when finished commit and push back to github. When you go back to computer a, pull your changes again, and doing this you'll always stay up to date with your most recent changes. A bonus, each time you commit changes, you basically put a bookmark there, so of you every really screw something up, you can go back in time and see what your code was, or even go back to that point.
Problem here is both computers have to be set up with MAMP to work
Another option, is to use an IDE (Internet development environment). That is actually what workspaces is here, it's an IDE. I currently use an IDE, and combine that with the power of Git. My IDE of choice at the moment is Cloud9. I use the free plan. https://c9.io