Skip to content

Commit

Permalink
Change port. Some other app uses 8759
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Aug 6, 2024
1 parent 1713dfd commit 2c66b8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions desktop/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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():
threading.Thread(target=run_studio, daemon=True).start()


def show_studio():
webbrowser.open("http://localhost:8759")
webbrowser.open("http://localhost:8757")


def quit_app():
Expand Down
4 changes: 2 additions & 2 deletions server/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2c66b8a

Please sign in to comment.