aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: 3528781bdb88712e27ddf078613b8f9842befa2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# Installation of MongoDB
sudo apt-get install -y mongodb-server
sudo service mongodb start

# 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 pyaggr3g470r/initialization.py firstname lastname firstname.lastname@mail.com secret

# Launch pyAggr3g470r
python runserver.py

deactivate
bgstack15