since i want to realease this we will for now continue to run this as root inside the containerr. this can be fixed later, PR's welcome
9 lines
212 B
Bash
9 lines
212 B
Bash
#!/bin/sh
|
|
source venv/bin/activate
|
|
|
|
echo "Updating database"
|
|
python manage.py migrate
|
|
python manage.py collectstatic --noinput
|
|
echo "Done"
|
|
|
|
exec gunicorn -b :8080 --access-logfile - --error-logfile - recipes.wsgi |