From the course: Learning Static Site Building with Jekyll

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Generate the site files

Generate the site files

From the course: Learning Static Site Building with Jekyll

Start my 1-month free trial

Generate the site files

- [Instructor] So far we've been using the Jekyll surf command to preview the site. When you're ready to deploy the site to the web, you'll need to run a different command to tell Jekyll to generate the final site files. That command is bundle-exec jekyll build instead of surf. All of the site files are saved in an output folder called underscore site, or if you changed you configuration like I did, in a folder called public. This output folder contains folders and files for each one of your posts and pages. Anything else you've added to your project, like files, style sheets, images, are also copied here. The contents of this output folder is the entire website. All we need to do is upload these files to a web server. Before we go deploy the site, let's make sure that everything is checked into Git. I'm going to do git status. I modified 404.html earlier and I haven't checked that in yet, so that's showing up. Note that if you see the site or public folder showing up in the Git…

Contents