remove redundant run from server
This commit is contained in:
parent
9553454d18
commit
3a605bf1da
1 changed files with 1 additions and 7 deletions
|
@ -20,15 +20,9 @@ def api_home():
|
||||||
return jsonify(response)
|
return jsonify(response)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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()
|
app = create_app()
|
||||||
register_api_endpoints(app)
|
register_api_endpoints(app)
|
||||||
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue