ljg.sh/docker/entrypoint.sh

15 lines
185 B
Bash
Executable File

#!/bin/sh
set -ex
rm -rf /app/static/*
python manage.py collectstatic
python manage.py migrate
if [ -z "$1" ] || [ "${1#-}" != "$1" ]
then
exec gunicorn ljg.wsgi "$@"
fi
exec "$@"