public
Last active

node website post-receive

  • Download Gist
post-receive
Shell
1 2 3 4 5 6 7
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.