Commit ea70ff04 by Heechul Kim

modified app.py to uwsgi-compatible

parent 64604f11
Showing with 4 additions and 6 deletions
......@@ -2,7 +2,8 @@
workers = 2
master = true
chdir = /home/%(uid)
venv = /home/%(uid)/.envs/porch
chdir = /home/%(uid)/porch
manage-script-name = true
mount = /=wsgi:app
......
......@@ -67,14 +67,11 @@ def initialize_app(flask_app):
flask_app.register_blueprint(blueprint)
def main():
initialize_app(app)
initialize_app(app)
if __name__ == "__main__":
app.run(
debug=settings.FLASK_DEBUG,
host=settings.FLASK_HOST,
port=settings.FLASK_PORT,
)
if __name__ == "__main__":
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment