1
0
mirror of https://github.com/LukePeters/flask-mongo-api-boilerplate.git synced 2026-05-16 07:06:29 +09:00

First push to GitHub

This commit is contained in:
Luke Peters
2019-02-17 17:04:03 -05:00
commit 6d77347505
18 changed files with 751 additions and 0 deletions

8
api/run.py Normal file
View File

@@ -0,0 +1,8 @@
from main import create_app
import logging
if __name__ == "__main__":
app = create_app()
app.run(host=app.config["FLASK_DOMAIN"], port=app.config["FLASK_PORT"])
else:
logging.basicConfig(app.config["FLASK_DIRECTORY"] + "trace.log", level=logging.DEBUG)