aboutsummaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-12 20:55:40 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-12 20:55:40 +0100
commit454308b0fe26767092b7b030b3746735633f5ba1 (patch)
treecab681790cc8b8cc9565357cec3f83369e914c89 /docker-entrypoint.sh
parentfc8383c528c47e6914557767be5723670c74008f (diff)
More changes for Docker deployment
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x[-rw-r--r--]docker-entrypoint.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 63bacb2..34b6867 100644..100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -1,4 +1,7 @@
#!/bin/sh
+echo "Running migrations..."
+./wait-for-it.sh db:5432 --timeout=30 --strict -- echo "Postgres is up"
+
cd /app
python manage.py migrate
python manage.py collectstatic --noinput