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/ghost
or
./edit.sh
You can create and publish new content, they are still only locally available.
View the local Ghost site in your Browser
open http://localhost:2368
This 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 buster
If you want to preview the generated static pages, use another container.
docker-compose up -d preview
open http://localhost:2369
or
./preview.sh
To 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.sh
Some 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.hbs
Put your GitHub pages into a folder static
.
git clone [email protected]:StefanScherer/stefanscherer.github.io
mv stefanscherer.github.io static