configure workers

pull/6/head
Yax 7 years ago
parent 09bf8fd641
commit 2cbd4e96b8

@ -70,4 +70,5 @@ if __name__ == '__main__':
app.run(host=config.HTTP_ADDRESS, app.run(host=config.HTTP_ADDRESS,
port=config.HTTP_PORT, port=config.HTTP_PORT,
debug=config.DEBUG) debug=config.DEBUG,
workers=config.HTTP_WORKERS)

@ -11,6 +11,7 @@ MAIL_URL = "http://localhost:8025/mbox"
HTTP_ADDRESS = "0.0.0.0" HTTP_ADDRESS = "0.0.0.0"
HTTP_PORT = 8000 HTTP_PORT = 8000
HTTP_WORKERS = 4
SALT = "BRRJRqXgGpXWrgTidBPcixIThHpDuKc0" SALT = "BRRJRqXgGpXWrgTidBPcixIThHpDuKc0"
@ -18,4 +19,4 @@ SECRET = "Uqca5Kc8xuU6THz9"
ROOT_URL = 'http://localhost:8000' ROOT_URL = 'http://localhost:8000'
RSS_FILE = 'comments.xml' RSS_FILE = 'comments.xml'

Loading…
Cancel
Save