Skip to content

Instantly share code, notes, and snippets.

@kivi
Created July 23, 2012 20:42
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 kivi/3166098 to your computer and use it in GitHub Desktop.
Save kivi/3166098 to your computer and use it in GitHub Desktop.
deploy node project
# we should create a user and run ast the new user.
# following commands executed as root
mkdir tmp
rsync -avz /var/lib/jenkins/jobs/tm-api/workspace/ /tmp/tm-api
# use nvm
. /var/lib/jenkins/.nvm/nvm.sh
nvm
nvm use v0.8.1
# start server
cd /tmp/tm-api
coffee server
# we could use foreman instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment