mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
20 lines
439 B
Bash
Executable File
20 lines
439 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ $# -eq 0 ]]
|
|
then
|
|
venv/bin/python -u opaque.py
|
|
elif [[ $1 == "--migrate" ]]
|
|
then
|
|
echo Migrating changes.
|
|
venv/bin/python -m flask db migrate
|
|
venv/bin/python -m flask db upgrade
|
|
else
|
|
if [[ $1 == "--setup-database" ]]
|
|
then
|
|
echo Initial setup of database.
|
|
venv/bin/python -m flask db init
|
|
venv/bin/python -m flask db upgrade
|
|
venv/bin/python -m flask insert-initial-database-entries
|
|
fi
|
|
fi
|