Last active
February 18, 2019 12:35
-
-
Save pyk/51a7db451f2ab66d9764df04cfb0222b to your computer and use it in GitHub Desktop.
config.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from os import environ as env | |
| import multiprocessing | |
| PORT = int(env.get("PORT", 8080)) | |
| DEBUG_MODE = int(env.get("DEBUG_MODE", 1)) | |
| # Gunicorn config | |
| bind = ":" + str(PORT) | |
| workers = multiprocessing.cpu_count() * 2 + 1 | |
| threads = 2 * multiprocessing.cpu_count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment