In my last Ghost related post, we got to 0.6.4. Well I went about the upgrade a little different this time. If you know your way around CLI this should be a breeze.
- SSH into your Ghost installation. You can find the credentials by logging into Openshift, clicking on your application, and clicking the link that says Want to log in to your application?
- Locate your
package.json
which can be found in/app-root/repo
. Use a command such asnano
orvim
and modify the line for ghost. It should be aroundline 18
if you're using the Openshift Ghost repo. - Change
"ghost": "^0.6.0"
to"ghost": "^0.7.0"
. - If you're using
nano
do a Ctrl-X, then y, then Enter. - Run
npm update
.
This is probably the most important step that I missed the first time and ended up rolling back to 0.6.4. - Log out of SSH and then run
rhc app-restart $APPNAME
. If it fails, just try and run it one more time before resorting to a rollback.