static url fix
This commit is contained in:
21
docker/entrypoint.sh
Normal file
21
docker/entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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 -
|
||||
Reference in New Issue
Block a user