2019-02-13 19:37:07 +00: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 21:42:59 +00:00
|
|
|
|
2019-04-04 23:25:30 +00:00
|
|
|
if [ ! -d "venv" ]; then
|
|
|
|
echo "No venv found, creating a new one"
|
2019-04-01 21:42:59 +00:00
|
|
|
python -m venv venv
|
|
|
|
fi
|
|
|
|
|
2019-04-04 23:25:30 +00:00
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
echo "Downloading dependencies"
|
|
|
|
pip-sync
|
|
|
|
|
|
|
|
echo "Copying config template. All custom config options can be set in the config.py file"
|
2019-02-13 19:37:07 +00:00
|
|
|
cd app
|
|
|
|
cp config.example.py config.py
|
|
|
|
cd ..
|
2019-04-04 23:25:30 +00:00
|
|
|
|
|
|
|
echo "Seeding database"
|
|
|
|
./populate-db.sh
|
|
|
|
|
|
|
|
echo "You can now run the server with 'python app/haldis.py runserver'"
|