Skip to content

snt-robotics/ghost-buster-docker

 
 

Repository files navigation

ghost-buster-docker

Run your Ghost blog in a Docker container and publish it with Buster to static GitHub pages.

Edit content with Ghost

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 content locally

View the local Ghost site in your Browser

open http://localhost:2368

Generate static files

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

Preview static files locally

If you want to preview the generated static pages, use another container.

docker-compose up -d preview
open http://localhost:2369

or

./preview.sh

Deploy static files to GitHub pages

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

Customization

Some notes for me so I can look up what I have done "years" ago.

Casper Theme

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 ../..

Disqus

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

Clone GitHub pages

Put your GitHub pages into a folder static.

git clone [email protected]:StefanScherer/stefanscherer.github.io
mv stefanscherer.github.io static

About

Run Ghost blog in Docker, and run Buster to deploy to GitHub pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 77.9%
  • Shell 22.1%