Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to port 50505 #523

Merged
merged 1 commit into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading