TandoorRecipes/boot.sh
2021-01-13 22:17:40 +01:00

14 lines
326 B
Bash

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