Created
February 5, 2015 20:32
-
-
Save benjaminmullard/2d89bc5f1b3d1f8e3a7f to your computer and use it in GitHub Desktop.
Install Ghost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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