From a47d9d00fd10ea304056afcb6823bdfb6b59bd51 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 1 Sep 2021 19:46:55 +0200 Subject: [PATCH] Allow specifying port through TANDOOR_PORT environment variable --- boot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/boot.sh b/boot.sh index 8cd2c22c..c799e3a3 100644 --- a/boot.sh +++ b/boot.sh @@ -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 \ No newline at end of file +exec gunicorn -b :$TANDOOR_PORT --access-logfile - --error-logfile - --log-level INFO recipes.wsgi \ No newline at end of file