Skip to content

Instantly share code, notes, and snippets.

@benjaminmullard
Created February 5, 2015 20:32
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 benjaminmullard/2d89bc5f1b3d1f8e3a7f to your computer and use it in GitHub Desktop.
Save benjaminmullard/2d89bc5f1b3d1f8e3a7f to your computer and use it in GitHub Desktop.
Install Ghost
sudo mkdir -p /var/www/
cd /var/www/
sudo wget https://ghost.org/zip/ghost-latest.zip
sudo unzip -d ghost ghost-latest.zip
cd ghost/
sudo npm install --production
sudo vi config.example.js
# In 'Production' section, change:
host: '127.0.0.1',
# to:
host: '0.0.0.0',
sudo adduser --shell /bin/bash --gecos 'Ghost application' ghost
sudo chown -R ghost:ghost /var/www/ghost/
su - ghost
cd /var/www/ghost/
nohup npm start --production &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment