Upgrading Ghost to v0.4.1

The upgrade was a very straight-forward process.

# Get Ghost
wget http://ghost.org/zip/ghost-0.4.1.zip

# Stop current instance
sudo forever list
sudo forever stopall

# Backup config and database
cp ghost/config.js ghost/config.js.old
cp ghost/content/data/ghost.db ghost/content/data/ghost.db.old

# Remove old core files
cd ghost
rm -r core
cd ..

# Extract new version
unzip -uo ghost-latest.zip -d ghost/
cd ghost

# Install node components
sudo npm install --production

# Test that everything works
npm start --production

# Start the production instance with forever
NODE_ENV=production forever start index.js