Upgrading Ghost
I created this site using an image from Digital Ocean with Ghost already installed. Its on version 0.6.4 and I notice there is later version available (0.7.1). Time to upgrade.
References
http://support.ghost.org/how-to-upgrade/
- Back up content by exporting json file using settings > labs > export
- Remote onto box
- Download latest
curl -LOk https://ghost.org/zip/ghost-latest.zip
- Unzip
unzip ghost-latest.zip -d ghost-latest
- Remove core directory, index.js, *.md and *.json:
sudo rm -rf core sudo rm index.js && sudo rm *.md && sudo rm *.json
- Copy in files from latest:
copy -R ~/ghost-latest/core/ .
,cp ~/ghost-latest/index.js ~/ghost-latest/*.json ~/ghost-latest/*.md .
- Copy latest default theme
cp -R ~/ghost-latest/content/themes/casper content/themes
- Update persmissions
chown -R ghost:ghost *
- Upgrade dependences
npm install --production
- Restart
service ghost restart
Successfully upgraded at the same time as writing this!