tgs / admin /gunicorn_conf.py
AZILS's picture
Upload 119 files
054900e verified
raw
history blame contribute delete
373 Bytes
from admin.config import ADMIN_HOST, ADMIN_PORT, DEBUG
reload = DEBUG
# The address and port your Flask app will listen on
bind = f"{ADMIN_HOST}:{ADMIN_PORT}"
# Number of workers. Gunicorn recommends 2-4 workers per core
workers = 1
# The location of your Flask app
wsgi_app = "admin.app:app"
# Set logging - this example logs to a file
accesslog = "-"
errorlog = "-"