aboutsummaryrefslogtreecommitdiffstats
path: root/entry_point.sh
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-09-10 20:51:10 +0100
committerGravatar GitHub <[email protected]>2021-09-10 20:51:10 +0100
commitf1219bc472bfa497057a1535b6d37752002e8492 (patch)
treeaf0717e76f4b0b8f4bb440f8ceee1563e6d480b9 /entry_point.sh
parentMerge pull request #6 from python-discord/sync-channels-guard-no-category (diff)
parentCapitalise SKIP_METRICITY env var name (diff)
Merge pull request #7 from python-discord/metricity-creates-own-database
Diffstat (limited to 'entry_point.sh')
-rw-r--r--entry_point.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/entry_point.sh b/entry_point.sh
new file mode 100644
index 0000000..cf101da
--- /dev/null
+++ b/entry_point.sh
@@ -0,0 +1,9 @@
+set -e
+
+python create_metricity_db.py
+alembic upgrade head
+
+shopt -s nocasematch
+if [ "$SKIP_METRICITY" != "true" ]; then
+ poetry run start
+fi