Skip to content

Instantly share code, notes, and snippets.

@cpettit
Created July 1, 2012 02:05
Show Gist options
  • Save cpettit/3026494 to your computer and use it in GitHub Desktop.
Save cpettit/3026494 to your computer and use it in GitHub Desktop.
Install Node.js on Ubuntu
sudo apt-get install build-essential libssl-dev curl git-core
----
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
-----
LOGIN
mkdir repo
mkdir www
cd repo
git init --bare
nano hook/post-receive
:: enter this in the file
GIT_WORK_TREE=/home/ubuntu/www git checkout -f
:: end of content
chmod +x hooks/post-receive
----
npm -g install forever
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment