adding jade to requreiments
[oweals/finalsclub.git] / start.sh
1 #!/bin/bash
2
3 # TODO update this with the contents of new.sh
4 exit # This breaks the script before it does anything else
5
6 export PATH="/usr/local/bin:$PATH"
7
8 cd ~
9 rm -rf bc
10 git clone git://github.com/finalsclubdev/bc.git
11 cd ~/bc
12 npm install connect
13 npm install socket.io
14 npm install express-messages
15 npm install jade
16
17 cd ~
18 rm -rf FinalsClub
19 git clone git://github.com/finalsclubdev/FinalsClub.git
20 ln -sf FinalsClub fc
21
22 cd ~/fc
23 git checkout master
24 git submodule init && git submodule update
25 npm install
26 cd etherpad-lite
27 npm install
28
29 # install some dependencies
30 cd ~/fc
31 npm install connect
32 npm install socket.io
33 npm install express-messages
34 npm install jade
35
36
37 ## init fcbackup 
38 cd ~/fc/fcbackups
39 chmod 775 fcbackup_init.sh
40 ./fcbackup_init.sh
41
42
43 ## start the server
44 cd ~/fc
45 ./restart
46
47
48
49
50
51
52