13 lines
133 B
Bash
13 lines
133 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
python manage.py migrate
|
||
|
|
||
|
if [ -z "$1" ] || [ "${1%-}" != "$1" ]
|
||
|
then
|
||
|
exec gunicorn ljg.wsgi "$@"
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|