diff --git a/main.py b/main.py index d79e994..5d5b74c 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,7 @@ from flask import Flask, jsonify, render_template, request import json import os import subprocess - +from waitress import serve PATH = '/download' @@ -213,3 +213,4 @@ def test(): if __name__ == "__main__": # app.run(host='0.0.0.0', debug=True) + serve(app, host='0.0.0.0', port=8000) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 7819fc3..b92be37 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,5 +21,6 @@ SQLAlchemy==1.3.16 style==1.1.6 update==0.0.1 urllib3==1.25.9 +waitress==1.4.3 Werkzeug==1.0.1 win32-setctime==1.0.1