pm2 stop ghost  
pm2 delete ghost  
curl -LOk https://ghost.org/zip/ghost-latest.zip  
unzip ghost-latest.zip -d ghost-temp  
cd ghost-run  
rm -rf core  
rm -rf content/themes/casper  
cd ../ghost-temp  
cp -R core ../ghost-run/  
cp -f index.js *.json ../ghost-run/  
cp -R content/themes/casper ../ghost-run/  
cd ../ghost-run  
rm -rf ../ghost-temp  
rm -rf node_modules && cnpm cache clear && cnpm install --production  
NODE_ENV=production pm2 start index.js --name "ghost"