How To Upgrade Ghost Blog With Command Line

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


Originally published at victorleungtw.com on May 29, 2015.

By Victor Leung

Experience in software development, consulting services and technical product management. Understanding of business and technology with an MBA in Finance and a Master degree in Computer Science. AWS Certified Solution Architect with experience in building products from scratch and serving as a charismatic leader.

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.