From f071a67e7723cbc6be69f46720bad9ed0519b736 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Fri, 17 Apr 2020 00:36:23 -0400 Subject: [PATCH] I don't think it accomplished what I was planning on doing. But it's being served with waitress now. --- main.py | 3 ++- requirements.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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