Rebuilding
Rebuilding on server
Whenever you add or change anything on the website, you’ll need to send a ‘rebuild’ command to the server before your changes will go live.
- Upload your new or revised files to the server
- In server console (such as through PuTTY), navigate to the site’s root folder
- Run the command
bundle exec jekyll build
Serving locally
If you have the entire repository of the site saved locally, you can host the site locally to view your changes as you make them.
- In a console window, navigate to the site’s root folder.
- Run the command
bundle exec jekyll serve --incremental
- Open an internet browser window to the
server address
that will be provided (e.g.http://127.0.0.1:4000/
) - To kill the server, return to the console window and kill the process with
ctrl-c
, and pressy
as needed to kill batch operations. - Remember that changes are only local; you’ll need to upload them to the server and rebuild before they’ll go live.
From scratch
To rebuild the entire site afresh, in the project’s root directory, run:
bundle exec jekyll clean
bundle exec jekyll build
The /_site
folder will be cleared and repopulated with the fresh build.