TandoorRecipes/boot.sh
2020-06-03 21:38:59 +02:00

11 lines
247 B
Bash

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