return created app in server
This commit is contained in:
parent
ba63ae2d58
commit
0ccce5f73b
2 changed files with 3 additions and 1 deletions
2
Procfile
2
Procfile
|
@ -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
|
release: python manage.py db upgrade
|
|
@ -25,6 +25,7 @@ if __name__ == '__main__':
|
||||||
app.register_blueprint(server)
|
app.register_blueprint(server)
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
socketio.run(app, debug=True)
|
socketio.run(app, debug=True)
|
||||||
|
return app
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
@ -32,3 +33,4 @@ def run():
|
||||||
app.register_blueprint(server)
|
app.register_blueprint(server)
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
socketio.run(app, debug=False)
|
socketio.run(app, debug=False)
|
||||||
|
return app
|
||||||
|
|
Loading…
Reference in a new issue