mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-09 04:09:06 -06:00
wsgi.py app.run func for production server (could break development?)
This commit is contained in:
3
wsgi.py
3
wsgi.py
@@ -4,3 +4,6 @@ from app.models import User, Post
|
|||||||
@app.shell_context_processor
|
@app.shell_context_processor
|
||||||
def make_shell_context():
|
def make_shell_context():
|
||||||
return {'db' : db, 'User' : User, 'Post' : Post}
|
return {'db' : db, 'User' : User, 'Post' : Post}
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run(host="0.0.0.0")
|
||||||
Reference in New Issue
Block a user