try config procfile server:socketio
This commit is contained in:
parent
0ccce5f73b
commit
ad2efb4df3
2 changed files with 1 additions and 3 deletions
2
Procfile
2
Procfile
|
@ -1,2 +1,2 @@
|
|||
gunicorn --worker-class eventlet -w 1 server:app
|
||||
gunicorn --worker-class eventlet -w 1 server:socketio
|
||||
release: python manage.py db upgrade
|
|
@ -25,7 +25,6 @@ if __name__ == '__main__':
|
|||
app.register_blueprint(server)
|
||||
migrate = Migrate(app, db)
|
||||
socketio.run(app, debug=True)
|
||||
return app
|
||||
|
||||
def run():
|
||||
app = create_app()
|
||||
|
@ -33,4 +32,3 @@ def run():
|
|||
app.register_blueprint(server)
|
||||
migrate = Migrate(app, db)
|
||||
socketio.run(app, debug=False)
|
||||
return app
|
||||
|
|
Loading…
Reference in a new issue