I don't think it accomplished what I was planning on doing. But it's being served with waitress now.
This commit is contained in:
3
main.py
3
main.py
@@ -3,7 +3,7 @@ from flask import Flask, jsonify, render_template, request
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from waitress import serve
|
||||||
|
|
||||||
PATH = '/download'
|
PATH = '/download'
|
||||||
|
|
||||||
@@ -213,3 +213,4 @@ def test():
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# app.run(host='0.0.0.0', debug=True)
|
# app.run(host='0.0.0.0', debug=True)
|
||||||
|
serve(app, host='0.0.0.0', port=8000)
|
||||||
@@ -21,5 +21,6 @@ SQLAlchemy==1.3.16
|
|||||||
style==1.1.6
|
style==1.1.6
|
||||||
update==0.0.1
|
update==0.0.1
|
||||||
urllib3==1.25.9
|
urllib3==1.25.9
|
||||||
|
waitress==1.4.3
|
||||||
Werkzeug==1.0.1
|
Werkzeug==1.0.1
|
||||||
win32-setctime==1.0.1
|
win32-setctime==1.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user