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
if [ -z "$1" ] || [ "${1%-}" != "$1" ]
then
exec gunicorn ljg.wsgi "$@"
fi
exec "$@"