don't run chat in localhost (makes shit slow)

master
Aevann1 2022-08-30 06:54:14 +02:00
parent 497c82ca53
commit 52bc4dec27
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ def teardown_request(error):
if app.config["SERVER_NAME"] == 'localhost': if app.config["SERVER_NAME"] == 'localhost':
from files.routes import * from files.routes import *
from files.routes.chat import * # from files.routes.chat import *
elif "load_chat" in argv: elif "load_chat" in argv:
from files.routes.chat import * from files.routes.chat import *
else: else:

View File

@ -5,7 +5,7 @@ logfile=/tmp/supervisord.log
[program:service] [program:service]
directory=/service directory=/service
command=gunicorn files.__main__:app -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 --reload -b 0.0.0.0:80 --max-requests 1000 --max-requests-jitter 500 command=gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --max-requests 30000 --max-requests-jitter 10000
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr