remove redundant run from server

This commit is contained in:
Sorrel Bri 2019-10-13 21:58:00 -07:00
parent 9553454d18
commit 3a605bf1da

View file

@ -20,15 +20,9 @@ def api_home():
return jsonify(response)
if __name__ == '__main__':
app = create_app()
register_api_endpoints(app)
app.register_blueprint(server)
migrate = Migrate(app, db)
socketio.run(app, debug=True)
def run():
app = create_app()
register_api_endpoints(app)
app.register_blueprint(server)
migrate = Migrate(app, db)
socketio.run(app, debug=False)