3 # this is sadly, out of date
4 # Bob, be bold and feel free to rewrite the old scripts rather than making new.sh
6 # TODO: Update this to install node 0.6.8 and whatever the latest stable mongodb is as of 02012-01-28
7 # Will involve building node on linux, so be sure to install build-essential
8 # TODO: install the latest stable npm from their website
9 # don't use the latest git version, use the one from the npm site
11 ## Start to deploy instructions
12 # git clone pathto fc repo
14 ## checks out bc and EPL
15 # git submodule --update init
18 # TODO: create separate deploy script for EPL
19 # should involve 'npm install ./'
21 sudo apt-get install git-core g++ libssl-dev curl make haproxy ruby rubygems mongodb-server
24 # Please change if running app on another arch!!!!
26 # wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.2.tgz
27 # tar -xvvf mongodb-linux-x86_64-2.0.2.tgz
28 # cd mongodb-linux-x86_64-2.0.2
34 curl http://nodejs.org/dist/node-v0.6.1.tar.gz > node-v0.6.1.tar.gz
35 tar xzvf node-v0.6.1.tar.gz
43 git clone http://github.com/isaacs/npm.git
46 sudo npm install nodemon -g
47 sudo npm install forever -g
49 ln -sf /usr/local/bin/node .
50 sudo ln -sf /usr/local/bin/node .
51 sudo ln -sf /usr/local/bin/forever .
55 export PATH="/usr/local/bin:$PATH"
59 npm install express-messages
64 git clone git://github.com/finalsclubdev/FinalsClub.git
69 git submodule init && git submodule update
74 # install some dependencies
78 npm install express-messages
81 echo "Please re-deploy DB backup before starting :)"