added flask app

This commit is contained in:
www
2020-08-18 20:06:47 +00:00
parent 73e594cf77
commit 5458633cd3
22 changed files with 64078 additions and 0 deletions

9
run.py Normal file
View File

@@ -0,0 +1,9 @@
from flaskapp import app,freezer
import sys
if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == "build":
freezer.freeze()
else:
app.run(host='0.0.0.0',port=8002, debug=True)