Created
April 2, 2012 22:38
-
-
Save vincentmac/2287692 to your computer and use it in GitHub Desktop.
#!: forever post-receive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT_WORK_TREE=/var/www/simplicity.io | |
export GIT_WORK_TREE | |
git checkout -f | |
forever stop 0 | |
NODE_ENV=production forever start /var/www/simplicity.io/app.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment