blob: 23e30b0958f98ab95451e388cac76959962c4e4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Installation of PostgreSQL
sudo apt-get install postgresql postgresql-server-dev-9.1 postgresql-client
#sudo -u postgres createuser
#createdb pyAggr3g470r
#sudo -u postgres psql
# Python dependencies
sudo apt-get install -y python-pip
pip install --user virtualenv
virtualenv --no-site-packages ./env_pyAggr3g470r
source ./env_pyAggr3g470r/bin/activate
pip install --upgrade -r requirements.txt
# Configuration
cp conf/conf.cfg-sample conf/conf.cfg
python db_create.py
# Launch pyAggr3g470r
python runserver.py
deactivate
|