2019-02-13 20:37:07 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# A simple file to run all instructions from the README
|
|
|
|
## this should be run in the root of the repository
|
2019-04-01 23:42:59 +02:00
|
|
|
|
|
|
|
if [ ! -d "vent" ]; then
|
|
|
|
python -m venv venv
|
|
|
|
fi
|
|
|
|
|
|
|
|
venv/bin/pip install -r requirements.txt
|
2019-02-13 20:37:07 +01:00
|
|
|
cd app
|
|
|
|
cp config.example.py config.py
|
|
|
|
cp -t . database/*
|
2019-04-01 23:42:59 +02:00
|
|
|
venv/bin/python create_database.py
|
2019-02-13 20:37:07 +01:00
|
|
|
rm -f add_* create_database.py
|
2019-04-01 23:42:59 +02:00
|
|
|
venv/bin/python haldis.py runserver
|
2019-02-13 20:37:07 +01:00
|
|
|
cd ..
|