Ghost updates on Webfaction

Upgrading ghost in place on webfaction is fairly painless. If you have any problems its easiest to debug by using node in bin directly to launch the ghost index.hbs file, this wat you can see the errors there and then.

update

#!/bin/bash
zip -r9 ghost.backup.zip ~/webapps/ghost/ghost;
wget -O ghost.latest.zip $(
       curl -s https://api.github.com/repos/TryGhost/Ghost/releases | \
    grep  browser_download_url | head -1 | cut -d'"' -f4
);
unzip ghost.latest.zip -d ~/webapps/ghost/ghost/;
cd ~/webapps/ghost/ghost;
../bin/npm install --production
../bin/stop && ../bin/start