aboutsummaryrefslogtreecommitdiffstats
path: root/entry_point.sh
blob: 3894effc81ac2d686cd12ff0b90078d131085c13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set -e

poetry run python create_metricity_db.py
poetry run alembic upgrade head

if [ -e /tmp/bot/metricity-config.toml ]; then
    echo "Detected metricity running in bot context, copying config." 
    cp --force /tmp/bot/metricity-config.toml ./config.toml
fi

shopt -s nocasematch
if [ "${USE_METRICITY:-true}" = "true" ]; then
    poetry run start
fi