2023-10-14 23:46:19 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2023-10-17 01:36:15 +02:00
|
|
|
rm -rf /app/static/*
|
2023-10-17 01:02:56 +02:00
|
|
|
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 "$@"
|