Installation directly from source

Supervisr is a python application which requires Python 3.5. To keep dependencies from clashing, we reccomend the usage of a virtualenv.

Installation of OS dependencies

Debian

apt install python3.5 python3-pip python3-virtualenv git

Download supervisr

# Change to whatever folder you plan to install supervisr to
# cd /opt/
git clone https://git.beryju.org/BeryJu.org/supervisr.git
cp supervisr/environments/default.yml supervisr/environments/local.yml
# Adjust install settings, DB type, etc
vi supervisr/environments/local.yml

Installation of Python dependencies

With virtualenv

virtualenv --python=python3.5 env
source env/bin/activate
pip install -U -r requirements.txt

Without virtualenv

pip install -U -r requirements.txt

Installing Database Migrations

./sv manage migrate session

Installing System Services and scripts

sudo cp build/debian/*.service /lib/systemd/system/
# Adjust the path to whatever path you installed supervisr in.
sudo vi /lib/systemd/system/supervisr*
sudo systemctl daemon-reload
sudo systemctl enable 'supervisr*'
sudo systemctl start 'supervisr*'
ln -s sv /usr/share/bin

supervisr should now be listening on port 8000.