Added hotfixes
This commit is contained in:
parent
45b2ad580d
commit
72d68737b4
5
app.py
5
app.py
@ -1,3 +1,6 @@
|
||||
from src.app import create_app
|
||||
from src.app import create_app, socketio, Config
|
||||
|
||||
app = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(app, host=Config.APP_HOST, debug=False)
|
@ -7,7 +7,7 @@ from pymongo import MongoClient
|
||||
from src.config import Config
|
||||
from src.singletons.database_singleton import DatabaseSingleton
|
||||
|
||||
from src.infra.server import app
|
||||
from src.infra.server import app, socketio
|
||||
from src.controllers.user_controller import user_blueprint
|
||||
from src.controllers.reservation_controller import reservation_blueprint
|
||||
from src.controllers.health_controller import health_blueprint
|
||||
@ -31,3 +31,7 @@ else:
|
||||
|
||||
def create_app():
|
||||
return app
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("HUY")
|
||||
socketio.run(app, host=Config.APP_HOST, debug=False)
|
Loading…
x
Reference in New Issue
Block a user