Skip to content

Commit 1f57abd

Browse files
author
Arvi Shankar
committed
added default port for flask app
1 parent d73ca45 commit 1f57abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-flask/app/gunicorn_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import multiprocessing
33

4-
bind = "0.0.0.0:" + os.environ["APP_PORT"]
4+
bind = "0.0.0.0:" + os.environ.get("APP_PORTS", "8080")
55
workers = (multiprocessing.cpu_count() * 2) + 1
66
accesslog = "-"
77
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'

0 commit comments

Comments
 (0)