try renaming server command to run

This commit is contained in:
Sorrel Bri 2019-10-12 12:50:58 -07:00
parent 3051de03aa
commit ef5bedb810
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -26,7 +26,7 @@ if __name__ == '__main__':
migrate = Migrate(app, db) migrate = Migrate(app, db)
socketio.run(app, debug=True) socketio.run(app, debug=True)
def server(): def run():
app = create_app() app = create_app()
register_api_endpoints(app) register_api_endpoints(app)
app.register_blueprint(server) app.register_blueprint(server)