forked from Flugmango/sc16-ephemeral-lbs-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
31 lines (25 loc) · 896 Bytes
/
install.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
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get upgrade -y
# Installing CouchDB
# based on https://www.digitalocean.com/community/tutorials/how-to-install-couchdb-and-futon-on-ubuntu-14-04
sudo add-apt-repository ppa:couchdb/stable -y
sudo apt-get update
sudo apt-get install couchdb -y
sudo stop couchdb
sudo chown -R couchdb:couchdb /usr/lib/couchdb /usr/share/couchdb /etc/couchdb /usr/bin/couchdb
sudo chmod -R 0770 /usr/lib/couchdb /usr/share/couchdb /etc/couchdb /usr/bin/couchdb
sudo start couchdb
# Installing nodejs
# https://nodejs.org/en/download/package-manager/
# LTS:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get update
sudo apt-get install nodejs -y
# To compile and install native addons from npm
sudo apt-get install -y build-essential
# setup project
# install dependencies
npm install
# setup database
nodejs setup_database/install.js