From f7e86b3fb55c076d03ad623f409d1031a4d77ab9 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Wed, 9 Aug 2023 22:51:30 +0000 Subject: [PATCH] Change to port 50505 --- .devcontainer/devcontainer.json | 4 ++-- README.md | 2 +- app/frontend/vite.config.ts | 4 ++-- app/start.ps1 | 3 +-- app/start.sh | 3 +-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1b3be7d091..a6be6d0da4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,11 +20,11 @@ } }, "forwardPorts": [ - 5000 + 50505 ], "postCreateCommand": "", "remoteUser": "vscode", "hostRequirements": { "memory": "8gb" } -} \ No newline at end of file +} diff --git a/README.md b/README.md index 6d0f0b6814..2e66c16c71 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ either you or they can follow these steps: ### Quickstart * In Azure: navigate to the Azure WebApp deployed by azd. The URL is printed out when azd completes (as "Endpoint"), or you can find it in the Azure portal. -* Running locally: navigate to 127.0.0.1:5000 +* Running locally: navigate to 127.0.0.1:50505 Once in the web app: diff --git a/app/frontend/vite.config.ts b/app/frontend/vite.config.ts index a2c038703e..39db422b6d 100644 --- a/app/frontend/vite.config.ts +++ b/app/frontend/vite.config.ts @@ -24,8 +24,8 @@ export default defineConfig({ }, server: { proxy: { - "/ask": "http://localhost:5000", - "/chat": "http://localhost:5000" + "/ask": "http://localhost:50505", + "/chat": "http://localhost:50505" } } }); diff --git a/app/start.ps1 b/app/start.ps1 index e1b5b43e88..a173506309 100644 --- a/app/start.ps1 +++ b/app/start.ps1 @@ -64,9 +64,8 @@ Write-Host "" Write-Host "Starting backend" Write-Host "" Set-Location ../backend -Start-Process http://127.0.0.1:5000 -Start-Process -FilePath $venvPythonPath -ArgumentList "-m quart --app main:app run --port 5000 --reload" -Wait -NoNewWindow +Start-Process -FilePath $venvPythonPath -ArgumentList "-m quart --app main:app run --port 50505 --reload" -Wait -NoNewWindow if ($LASTEXITCODE -ne 0) { Write-Host "Failed to start backend" diff --git a/app/start.sh b/app/start.sh index 0eab79ff0a..a9fe5ace95 100755 --- a/app/start.sh +++ b/app/start.sh @@ -56,8 +56,7 @@ echo "Starting backend" echo "" cd ../backend -xdg-open http://127.0.0.1:5000 -./backend_env/bin/python -m quart --app main:app run --port 5000 --reload +./backend_env/bin/python -m quart --app main:app run --port 50505 --reload if [ $? -ne 0 ]; then echo "Failed to start backend" exit $?