ljg.sh/docker/entrypoint.sh

15 lines
185 B
Bash
Raw Normal View History

2023-10-14 23:46:19 +02:00
#!/bin/sh
set -ex
2023-10-17 01:36:15 +02:00
rm -rf /app/static/*
python manage.py collectstatic
2023-10-14 23:46:19 +02:00
python manage.py migrate
2023-10-17 01:40:16 +02:00
if [ -z "$1" ] || [ "${1#-}" != "$1" ]
2023-10-14 23:46:19 +02:00
then
exec gunicorn ljg.wsgi "$@"
fi
exec "$@"