Selaa lähdekoodia

setup initial run.py

weichen 3 vuotta sitten
vanhempi
commit
23aa6afd3f
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      run.py

+ 12 - 0
run.py

@@ -0,0 +1,12 @@
+from models import create_app
+import logging
+
+logger = logging.getLogger(__name__)
+app = create_app()
+
+
+if __name__ == '__main__':
+    logging.basicConfig(
+        level=logging.INFO,
+        format='%(asctime)s %(levelname)s %(message)s')
+    app.run(debug=True, port=5000)