diff options
| author | FivePixels <o5pxels@gmail.com> | 2022-11-18 09:09:02 -0600 |
|---|---|---|
| committer | FivePixels <o5pxels@gmail.com> | 2022-11-18 09:09:02 -0600 |
| commit | f2b085b34b86dbf9783f0ca6ab01905089f8f81f (patch) | |
| tree | 6e4d3b05fa96bae5359ed858219141a482689d97 /app/app.py | |
| parent | 43c1773876c6e37963b88843fec6c488d1db445e (diff) | |
| download | Strengthy-f2b085b34b86dbf9783f0ca6ab01905089f8f81f.tar.xz Strengthy-f2b085b34b86dbf9783f0ca6ab01905089f8f81f.zip | |
Add wsgi.py and update app.py for prod
Diffstat (limited to 'app/app.py')
| -rw-r--r-- | app/app.py | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -16,10 +16,12 @@ login_manager.login_view = "/login" # Setup SQLAlchemy # https://flask-sqlalchemy.palletsprojects.com/en/2.x/quickstart/#a-minimal-application -db = SQLAlchemy(app) -import tables.user - -db.create_all() +with app.app_context(): + db = SQLAlchemy(app) + db.create_all() # Load routes -import routes +from routes import * + +if __name__ == "__main__": + app.run(host='0.0.0.0')
\ No newline at end of file |
