Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Root-relative paths are commonly used when building and testing sites directly on the web or on a local web server.
Start a Simple Web Server from Any Directory on Your Computer
Open your Terminal (or console), navigate to the directory you want to use, and enter the following command:
python -m SimpleHTTPServer 8000
You can view your site at this address: localhost:8000
.
Reference: How to use SimpleHTTPServer
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up