22 lines
470 B
Bash
Executable File
22 lines
470 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
cd /app
|
|
|
|
echo "--- Installing/updating Python dependencies ---"
|
|
pip install --quiet -r requirements.txt
|
|
|
|
echo "--- Collecting static files ---"
|
|
python manage.py collectstatic --noinput
|
|
|
|
echo "--- Running database migrations ---"
|
|
python manage.py migrate --noinput
|
|
|
|
echo "--- Starting gunicorn ---"
|
|
exec gunicorn blechreiz.wsgi:application \
|
|
--bind 0.0.0.0:8000 \
|
|
--workers 2 \
|
|
--timeout 120 \
|
|
--access-logfile - \
|
|
--error-logfile -
|