TandoorRecipes/boot.sh
2020-06-03 21:31:56 +02:00

10 lines
251 B
Bash

#!/bin/sh
source venv/bin/activate
echo "Updating database"
python manage.py migrate
python manage.py collectstatic --noinput
echo "Done"
exec chmod 755 /opt/recipes/mediafiles
exec gunicorn -b :8080 --access-logfile - --error-logfile - recipes.wsgi