Skip to content

Instantly share code, notes, and snippets.

@Numbluk
Last active January 15, 2017 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Numbluk/7be7dfd9ee7614efb61f2422f2d29ce4 to your computer and use it in GitHub Desktop.
Save Numbluk/7be7dfd9ee7614efb61f2422f2d29ce4 to your computer and use it in GitHub Desktop.
Generating a static site from Ghost on Debian/Ubuntu Linux with Buster

First, make sure you have npm and nodejs installed. Check here https://nodejs.org/en/download/package-manager/ if you dont't.

Create a folder for blog mkdir ~/blog

If you already have python installed through the package manager and you want to install pip through the package manager: sudo apt-get install python-pip

Next you'll install https://github.com/axitkhurana/buster with pip. This is what generates your static site: sudo pip install buster

Download the latest version of Ghost curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip

and unzip it into your blog's directory into another directory called ghost: mkdir blog/ghost; unzip ghost.zip -d ~/blog/ghost

cd into your new ghost folder and install install Ghost (production dependencies only) through npm: cd ~/blog/ghost; npm install --production

You can now start the server: npm start

And access your blog at http://localhost:2368 by default.

Next cd into your blog: cd ~/blog

and set the default repo for buster to deploy to: buster setup --gh-repo="https://github.com/user/repo.io.git

You can now generate the static site with: buster generate

And you can automatically deploy with: buster deploy

To start setting up ghost, just follow the guide at: http://localhost:2368/ghost

That's it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment