read

Backup Ghost

#Here my directory is called Ghost ... change it to suit your install
temp  sudo zip -r Ghost_$(date +%Y-%m-%d-%H.%M.%S).zip Ghost  

Download Ghost

#Assumes that you have a directory called temp
cd ~/temp  
curl -L https://ghost.org/zip/ghost-latest.zip -o ghost.zip  
unzip -uo ghost.zip -d ghost  

Delete the core direction in your installation folder

rm -rf ~/ghost/core  

Copy the main files and then core directory and all of its contents to your installation folder

cp *.js *.json *.md LICENSE /var/www/ghost  
cp -R core /var/www/ghost  

Install dependencies

npm install --production  

Restart Ghost

sudo forever start index.js  
# I am using the development config here. Modify to suit your needs.
Blog Logo

Santosh

Ghost Lover!


Published

Image

Random Thoughts!

Fast and Mobile Life!

Back to Overview