-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·52 lines (38 loc) · 1.45 KB
/
deploy.sh
File metadata and controls
executable file
·52 lines (38 loc) · 1.45 KB
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
47
48
49
50
51
52
#!/usr/bin/env bash
#--------------< Installing NodeJS >--------------#
cd ~
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo rm nodesource_setup.sh
sudo apt-get install nodejs
sudo apt-get install build-essential
#--------------</ Installing NodeJS >--------------#
#--------------< Installing MongoDB >--------------#
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo echo '[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
[Install]
WantedBy=multi-user.target' > /etc/systemd/system/mongodb.service
sudo systemctl start mongodb
sudo systemctl status mongodb
sudo systemctl enable mongodb
#--------------</ Installing MongoDB >--------------#
#--------------< Installing Required Packages >--------------#
sudo apt-get install git
sudo npm install bower -g
sudo npm install pm2 -g
#--------------</ Installing Required Packages >--------------#
#--------------< Installing Source Code >--------------#
git clone https://github.com/AliKarami/labRiver.git
cd labRiver
git pull
npm install
bower install
#--------------</ Installing Source Code >--------------#