-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetuplive.sh
46 lines (30 loc) · 926 Bytes
/
setuplive.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#Run on a Fresh Nodejs Bitnami Stack http://bitnami.com/stack/nodejs
#Update ubuntu apps
sudo apt-get update
#Set up git
sudp apt-get install git
git config --global user.name "eebhubsimulation"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
#Install Express Globally
npm install -g Express
#Install Node NPM forever globallly
npm install -g forever
#Move to htdocs directory
cd htdocs/
#Install Express Globally
npm install -g Express
#Install Node NPM forever globallly
npm install -g forever
#Move to htdocs directory
cd htdocs/
#Git clone the platform directory
sudo git clone https://github.com/eebhub/platform.git
#Move into Platform directory
cd platform/
#Npm install from package.json
sudo npm install
#Open Port 3000
sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
#Launch Node app
forever app.js start