Skip to content

Instantly share code, notes, and snippets.

@xsenechal
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xsenechal/1792c51a0ba3c2c3123a to your computer and use it in GitHub Desktop.
Save xsenechal/1792c51a0ba3c2c3123a to your computer and use it in GitHub Desktop.
Jenkins continuous deploy for nodejs
#install NodeJS plugin, then in the global settings, create a NodeJS install
#in the job config check the box "Provide Node & npm bin/ folder to PATH"
export http_proxy="http://user:pwd@domain:8080"
export https_proxy="http://user:pwd@domain:8080"
echo $path
node --version
bower --version
npm install
bower install
grunt build
export NODE_ENV=test
if pgrep node; then killall node; fi
#this allow to detach the process
export BUILD_ID=dontKillMe
nohup node server.js > conges.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment