Skip to content

Instantly share code, notes, and snippets.

@bitIO
Created November 3, 2015 15:24

Revisions

  1. bitIO created this gist Nov 3, 2015.
    11 changes: 11 additions & 0 deletions post-receive
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/sh
    git --work-tree=/var/www/ghost --git-dir=/root/repository/ checkout -f
    cd /var/www/ghost
    chown -R ghost:ghost *
    npm install --production

    cd content/data
    rm ghost.db
    ln -s ghost-dev.db ghost.db

    service ghost restart