diff options
Diffstat (limited to 'docker-entrypoint.sh')
-rwxr-xr-x[-rw-r--r--] | docker-entrypoint.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 5e8164c..34b6867 100644..100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -1,5 +1,8 @@ #!/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 -exec gunicorn --bind ':8080' --worker-tmp-dir /dev/shm --workers 3 config.wsgi:application +exec gunicorn --bind ':3000' --worker-tmp-dir /dev/shm --workers 3 config.wsgi:application |