From 2c66b8a93741f28ac82a147a1e4dacaecf4b1509 Mon Sep 17 00:00:00 2001 From: scosman Date: Tue, 6 Aug 2024 00:22:33 -0400 Subject: [PATCH] Change port. Some other app uses 8759 --- desktop/desktop.py | 4 ++-- server/dev.sh | 4 ++-- server/server.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop/desktop.py b/desktop/desktop.py index 4b78d79..660709f 100644 --- a/desktop/desktop.py +++ b/desktop/desktop.py @@ -19,7 +19,7 @@ def resource_path(relative_path): def run_studio(): - uvicorn.run(server.app, host="127.0.0.1", port=8759, log_level="warning") + uvicorn.run(server.app, host="127.0.0.1", port=8757, log_level="warning") def run_studio_thread(): @@ -27,7 +27,7 @@ def run_studio_thread(): def show_studio(): - webbrowser.open("http://localhost:8759") + webbrowser.open("http://localhost:8757") def quit_app(): diff --git a/server/dev.sh b/server/dev.sh index 3eac023..9b82e90 100755 --- a/server/dev.sh +++ b/server/dev.sh @@ -7,5 +7,5 @@ cd ../studio/web_ui # Needs to run from this directory cd ../../server -sleep 1 && open "http://localhost:8759" & -fastapi dev --port 8759 server.py +sleep 1 && open "http://localhost:8757" & +fastapi dev --port 8757 server.py diff --git a/server/server.py b/server/server.py index 34efebc..ec5b3eb 100644 --- a/server/server.py +++ b/server/server.py @@ -61,4 +61,4 @@ def read_item(item_id: int, q: Union[str, None] = None): app.mount("/", StaticFiles(directory=studio_path(), html=True), name="studio") if __name__ == "__main__": - uvicorn.run(app, host="127.0.0.1", port=8759) + uvicorn.run(app, host="127.0.0.1", port=8757)