return created app in server

This commit is contained in:
Sorrel Bri 2019-10-13 10:25:14 -07:00
parent ba63ae2d58
commit 0ccce5f73b
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,2 @@
gunicorn --worker-class eventlet -w 1 server:run
gunicorn --worker-class eventlet -w 1 server:app
release: python manage.py db upgrade

View file

@ -25,6 +25,7 @@ if __name__ == '__main__':
app.register_blueprint(server)
migrate = Migrate(app, db)
socketio.run(app, debug=True)
return app
def run():
app = create_app()
@ -32,3 +33,4 @@ def run():
app.register_blueprint(server)
migrate = Migrate(app, db)
socketio.run(app, debug=False)
return app