aboutsummaryrefslogtreecommitdiffstats
path: root/entry_point.sh
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-09 17:03:29 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-09 18:35:18 +0100
commit803d19f00cad8417af37e4867d1676dde3982bed (patch)
tree27903195f7c30acb920af24bf0437d960e6524d3 /entry_point.sh
parentAdd a script to create metricity db if it doesn't exist (diff)
Create database before migrating and running
Diffstat (limited to 'entry_point.sh')
-rw-r--r--entry_point.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/entry_point.sh b/entry_point.sh
new file mode 100644
index 0000000..e78966d
--- /dev/null
+++ b/entry_point.sh
@@ -0,0 +1,6 @@
+set -e
+python create_metricity_db.py
+alembic upgrade head
+if [ -z "$skip_metricity" ]; then
+ poetry run start
+fi