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 trialStephanie Shaw
3,373 PointsHow do I switch to actually using a local server, with a text editor, when my files have been stored locally?
I 'think' I have installed the SimpleHTTPServer, and when I go to localhost:8000/ I am given a directory listing of my computers local files.
My html project files are stored on my desktop in a folder and I have been using Atom text editor.
How do I actually now 'use' this local server with my text editor/files so I can practise coding root relative paths?
1 Answer
Steven Parker
231,248 PointsThe directory listing you see now when you connect is the "root" for the server. It should be the one where you started the server running. If it is not the folder where your files are, you can move or copy your files into that folder to create the web site. Or you could move the server to your edit folder and restart it from there.
If one of the files you put into the root folder is named "index.html", it will be shown when you connect instead of the listing.