From 2cbd4e96b8d1cbb74297140c8c32e6cdf2ff0dd4 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sat, 8 Jul 2017 20:42:58 +0200 Subject: [PATCH] configure workers --- app/run.py | 3 ++- config.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/run.py b/app/run.py index 164b913..57ccb40 100644 --- a/app/run.py +++ b/app/run.py @@ -70,4 +70,5 @@ if __name__ == '__main__': app.run(host=config.HTTP_ADDRESS, port=config.HTTP_PORT, - debug=config.DEBUG) + debug=config.DEBUG, + workers=config.HTTP_WORKERS) diff --git a/config.py b/config.py index 5dd761a..03e769f 100644 --- a/config.py +++ b/config.py @@ -11,6 +11,7 @@ MAIL_URL = "http://localhost:8025/mbox" HTTP_ADDRESS = "0.0.0.0" HTTP_PORT = 8000 +HTTP_WORKERS = 4 SALT = "BRRJRqXgGpXWrgTidBPcixIThHpDuKc0" @@ -18,4 +19,4 @@ SECRET = "Uqca5Kc8xuU6THz9" ROOT_URL = 'http://localhost:8000' -RSS_FILE = 'comments.xml' \ No newline at end of file +RSS_FILE = 'comments.xml'