ljg.sh/scripts/entrypoint.sh

14 lines
178 B
Bash
Raw Permalink Normal View History

2023-10-14 23:46:19 +02:00
#!/bin/sh
set -ex
2023-12-22 17:57:47 +01:00
python -m ljg collectstatic --noinput
python -m ljg migrate --noinput
2023-10-14 23:46:19 +02:00
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 "$@"