Skip to content

Instantly share code, notes, and snippets.

@JasonMillward
Created May 18, 2015 02:21
Show Gist options
  • Save JasonMillward/5895bb6edc46792c64f8 to your computer and use it in GitHub Desktop.
Save JasonMillward/5895bb6edc46792c64f8 to your computer and use it in GitHub Desktop.
#!/bin/bash
ghost_path=$1
if [ -z $ghost_path ]; then
echo "Usage: $0 <ghost path>";
exit 1;
fi
forever stopall
cd $ghost_path
wget --quiet http://ghost.org/zip/ghost-latest.zip
rm -rf ./core/
unzip -quo ghost-latest.zip -d ./
npm install --production
NODE_ENV=production forever start index.js
rm ghost-latest.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment