diff options
| author | 2021-09-09 17:03:29 +0100 | |
|---|---|---|
| committer | 2021-09-09 18:35:18 +0100 | |
| commit | 803d19f00cad8417af37e4867d1676dde3982bed (patch) | |
| tree | 27903195f7c30acb920af24bf0437d960e6524d3 /entry_point.sh | |
| parent | Add 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.sh | 6 | 
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  |