Created
May 18, 2015 02:21
-
-
Save JasonMillward/5895bb6edc46792c64f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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