TandoorRecipes/boot.sh
2020-03-20 10:50:34 +01:00

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