Skip to content

Commit

Permalink
Change to port 50505 (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox committed Aug 10, 2023
1 parent 9cebb77 commit 4255283
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
}
},
"forwardPorts": [
5000
50505
],
"postCreateCommand": "",
"remoteUser": "vscode",
"hostRequirements": {
"memory": "8gb"
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions app/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
});
3 changes: 1 addition & 2 deletions app/start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions app/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
Expand Down

0 comments on commit 4255283

Please sign in to comment.