Run your Ghost blog in a Docker container and publish it with Buster to static GitHub pages.
docker-compose up -d ghost
open http://localhost:2368/ghostor
./edit.shYou can create and publish new content, they are still only locally available.
View the local Ghost site in your Browser
open http://localhost:2368This will run buster in a container and update the files in the static
folder. The data still remains locally on your disk.
docker-compose run busterIf you want to preview the generated static pages, use another container.
docker-compose up -d preview
open http://localhost:2369or
./preview.shTo deploy the static files the shell script deploy.sh is used that checks
in all local changes in the static folder and pushes it as new Git commit
to your GitHub pages repo.
./deploy.shSome notes for me so I can look up what I have done "years" ago.
Updated Casper theme to 1.3.5 from https://github.com/TryGhost/Casper
cd content/themes
rm -rf casper
git clone https://github.com/TryGhost/Casper
mv Casper casper
cd ../..Followed http://academy.ghost.org/adding-disqus-to-your-ghost-blog/ to add
Disqus to post.hbs and then copied it into the themes folder.
cp post.hbs content/themes/casper/post.hbsPut your GitHub pages into a folder static.
git clone git@github.com:StefanScherer/stefanscherer.github.io
mv stefanscherer.github.io static