Create a Static Website Using Jekyll

Preview Your Site Locally

Want to see what your site currently looks like? You can use Jekyll to view your site locally.

On the web, a server hosts your site's files and makes your website available for everyone to see.

However, viewing a website locally means that you're viewing the site on your own computer (hence the term "locally" or "local"). The site is not, however, available on the public Internet. Instead, your computer is acting as the server that hosts your site.

You can view your site locally by using Jekyll's serve command, like so:

jekyll serve

This command starts a local server that will server the files to your computer. The serve command will also come in handy when you want to preview changes you make to your site.

By default, the address for the local server that Jekyll's serve command starts is http://localhost:4000/.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.