Created
July 1, 2012 02:05
-
-
Save cpettit/3026494 to your computer and use it in GitHub Desktop.
Install Node.js on Ubuntu
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
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