mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-26 21:41:57 -06:00
Refine Engine configuration wiring
This commit is contained in:
@@ -29,7 +29,7 @@ def bootstrap() -> EngineRuntime:
|
||||
logger.info("bootstrap-started")
|
||||
app = create_app(settings)
|
||||
register_http_interfaces(app)
|
||||
socketio = create_socket_server(app, settings)
|
||||
socketio = create_socket_server(app, settings.socketio)
|
||||
logger.info("bootstrap-complete")
|
||||
return EngineRuntime(app=app, settings=settings, socketio=socketio)
|
||||
|
||||
@@ -40,14 +40,14 @@ def main() -> None:
|
||||
if socketio is not None:
|
||||
socketio.run( # type: ignore[call-arg]
|
||||
runtime.app,
|
||||
host=runtime.settings.host,
|
||||
port=runtime.settings.port,
|
||||
host=runtime.settings.server.host,
|
||||
port=runtime.settings.server.port,
|
||||
debug=runtime.settings.debug,
|
||||
)
|
||||
else:
|
||||
runtime.app.run(
|
||||
host=runtime.settings.host,
|
||||
port=runtime.settings.port,
|
||||
host=runtime.settings.server.host,
|
||||
port=runtime.settings.server.port,
|
||||
debug=runtime.settings.debug,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user