pokeapi/gunicorn.conf.py

7 lines
165 B
Python
Raw Normal View History

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