Browse Source

production + uwsgi

David 9 năm trước cách đây
mục cha
commit
39863a654b
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      web.py

+ 3 - 5
web.py

@@ -6,9 +6,6 @@ from db import db
 from linklist import LinkList
 
 app = Flask(__name__)
-d = db()
-
-
 BASEPATH = "/pymnts"
 
 
@@ -161,5 +158,6 @@ def create_task():
 
 
 if __name__ == '__main__':
-    app.run(host="0.0.0.0", debug=True)
-    #app.run(host="0.0.0.0", debug=False)
+    d = db()
+    #app.run(host="0.0.0.0", debug=True)
+    app.run(host="0.0.0.0", debug=False)