v5.2.0: waitress вместо app.run() — production WSGI, 8 потоков, исправляет ERR_TIMED_OUT
Deploy drhider / validate (push) Waiting to run

This commit is contained in:
2026-07-12 16:05:44 +04:00
parent 81bdee6203
commit d0e874d87e
4 changed files with 55 additions and 2 deletions
+3 -2
View File
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
sys.path.insert(0, _sys_path_root)
# Версия приложения (меняется при изменениях)
VERSION = "5.1.0"
VERSION = "5.2.0"
def create_app():
@@ -61,7 +61,8 @@ app = create_app()
# Штурвал запускает: cd site && python app.py
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
from waitress import serve
serve(app, host="0.0.0.0", port=5000, threads=8)