Victor Leung
Victor Leung
BlogFlower shop

How To Upgrade Ghost Blog With Command Line

June 28, 2015

Step 1: Change directory into your path that installed the ghost blog. For example, mine is:

cd /var/www

Step 2: Download the latest verion using wget

_wget _https://ghost.org/zip/ghost-X.X.X.zip

Note: You could find the current verion in the official website: https://ghost.org/download/

Step 3: Remove the old core code

rm -rf ghost/core

Step 4: Unzip the downloaded file

unzip -uo ghost-0.6.4.zip -d ghost

Step 5: Change ownership and permission

*chown -R ghost:ghost ghost/**

Step 6: Install new dependencies

cd /var/www/ghost

npm install

Step 7: Restart ghost

pm2 restart ghost

Note: If you are not using pm2, you may run the below command instead:

service ghost start


About Victor Leung

Software development professional with expertise in application architecture, cloud solutions deployment, and financial products development. Possess a Master's degree in Computer Science and an MBA in Finance. Highly skilled in AWS (Certified Solutions Architect Professional, Developer and SysOps Administrator), GCP (Professional Cloud Architect), Microsoft Azure, Kubernetes(CKA, CKAD, CKS, KCNA), and Scrum(PSM, PSPO) methodologies.

Happy to connect
LinkedIn
Github
Twitter
@victorleungtw

Continuous improvement

Copyright © victorleungtw.com 2023.