This is the basic lifecycle you’d undergo to create a new post or article.
- Write the post.
- If it’s a blog post, make sure the filename begins with YYYY-MM-DD-, ends with the extension .md and is stored somewhere underneath the _posts directory.
- If you’ve added or altered any images in the process of creating your post, run ./run-dev.sh so that SBS can deal with images. You only need to run that once after every image change or addition. If there are no changes to images, run ./run-dev-no-images.sh as this is much faster.
- When the scripts in step 3 have completed, SBS will start a development server for you. It will give you the address of the development server at the end (it will usually be http://127.0.0.1:8081 on MacOS). You can now go to that URL in a browser, check your post and correct any errors you might find.
- Repeat steps 3 and 4 until you’re happy with the post.
- Run ./run-prod.sh or ./run-prod-no-images.sh (depending on whether you’ve added or changed images, as mentioned in step 3).
- FTP or otherwise copy the entire contents of the _site directory to your web root on the server.