aboutsummaryrefslogtreecommitdiffstats
path: root/entry_point.sh
blob: 4eb5beb792a347e72f97ee45b6b93d37d90d24fb (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