pokeapi/gunicorn.conf.py

7 lines
165 B
Python
Raw Permalink Normal View History

2021-05-28 09:52:40 +00:00
import os
from multiprocessing import cpu_count
2021-05-28 09:52:40 +00:00
bind = "0.0.0.0:{}".format(os.environ.get("SERVER_PORT", "80"))
workers = cpu_count() * 2
threads = cpu_count() * 2