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'