diff --git a/Procfile b/Procfile index 54d13e7..4acc34f 100644 --- a/Procfile +++ b/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 \ No newline at end of file diff --git a/server.py b/server.py index 879f332..d6ea214 100644 --- a/server.py +++ b/server.py @@ -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