define server:server
This commit is contained in:
parent
b70a126958
commit
e5d77a8398
1 changed files with 7 additions and 1 deletions
|
@ -26,3 +26,9 @@ if __name__ == '__main__':
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
socketio.run(app, debug=True)
|
socketio.run(app, debug=True)
|
||||||
|
|
||||||
|
def server():
|
||||||
|
app = create_app()
|
||||||
|
register_api_endpoints(app)
|
||||||
|
app.register_blueprint(server)
|
||||||
|
migrate = Migrate(app, db)
|
||||||
|
socketio.run(app, debug=False)
|
||||||
|
|
Loading…
Reference in a new issue