TandoorRecipes/boot.sh
2021-01-12 20:51:28 +01:00

12 lines
309 B
Bash

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