Created
December 1, 2012 10:14
-
-
Save pH200/4181400 to your computer and use it in GitHub Desktop.
node website 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/bash | |
export GIT_WORK_TREE=/var/www/project | |
git checkout -f | |
pushd $GIT_WORK_TREE | |
npm install | |
NODE_ENV=production forever restart server.js | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment