Allow specifying port through TANDOOR_PORT environment variable

This commit is contained in:
Christoph Schmatzler 2021-09-01 19:46:55 +02:00
parent 47946332f4
commit a47d9d00fd
No known key found for this signature in database
GPG Key ID: BD93D47EA5A3CF4B

View File

@ -1,6 +1,8 @@
#!/bin/sh
source venv/bin/activate
TANDOOR_PORT="${TANDOOR_PORT:-8080}"
echo "Updating database"
python manage.py migrate
python manage.py collectstatic_js_reverse
@ -9,4 +11,4 @@ echo "Done"
chmod -R 755 /opt/recipes/mediafiles
exec gunicorn -b :8080 --access-logfile - --error-logfile - --log-level INFO recipes.wsgi
exec gunicorn -b :$TANDOOR_PORT --access-logfile - --error-logfile - --log-level INFO recipes.wsgi