forked from ResEnv/chain-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.sh
32 lines (28 loc) · 991 Bytes
/
manifest.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
#!/bin/bash
#NGINX WebSockets Proxying
if grep "nginx" /etc/apt/sources.list > /dev/null
then
sudo apt-get update
else
echo 'deb http://nginx.org/packages/ubuntu/ precise nginx' | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62
sudo apt-get update
fi
#Reconfigure Locales or an error will popup when installing new packages
sudo locale-gen en_US en_US.UTF-8 de_AT.UTF-8
sudo dpkg-reconfigure locales
#Packages
sudo apt-get --yes --force-yes install python-dev libpq-dev python-pip
sudo apt-get --yes --force-yes install nginx
sudo apt-get --yes --force-yes install supervisor
sudo apt-get --yes --force-yes install apache2-utils
sudo apt-get --yes --force-yes install postgresql postgresql-contrib
sudo apt-get --yes --force-yes install libzmq-dev
#Postgres setup
#su – postgres
#createuser --pwprompt
#createdb chain;
#./setup.py develop
#./manage.py syncdb
#./manage.py migrate
#./manage.py runserver 0.0.0.0:8000