ljg.sh/scripts/entrypoint.sh

14 lines
178 B
Bash
Executable File

#!/bin/sh
set -ex
python -m ljg collectstatic --noinput
python -m ljg migrate --noinput
if [ -z "$1" ] || [ "${1#-}" != "$1" ]
then
exec gunicorn ljg.wsgi "$@"
fi
exec "$@"