Skip to content

Instantly share code, notes, and snippets.

@psgganesh
Last active March 14, 2017 12:20
Show Gist options
  • Save psgganesh/d7a4fe60aac7ed5e5066 to your computer and use it in GitHub Desktop.
Save psgganesh/d7a4fe60aac7ed5e5066 to your computer and use it in GitHub Desktop.
Ghost as forever
# Install ghost and forever, run it as a service
cd /var/www/
sudo wget https://ghost.org/zip/ghost-latest.zip
sudo apt-get -y install unzip
sudo unzip -d ghost ghost-latest.zip
cd ghost/
sudo cp config.example.js config.js
sudo nano config.js
sudo GHOST_NODE_VERSION_CHECK=false npm start --production
# sudo GHOST_NODE_VERSION_CHECK=false npm install --production
# sudo npm install -g forever
# Run the last part of the code, to bring up the ghost server
# sudo GHOST_NODE_VERSION_CHECK=false NODE_ENV=production forever start index.js