Skip to content

Commit 2c17cba

Browse files
CopilotMte90
andcommitted
Change all default ports from 8000 to 8080
Co-authored-by: Mte90 <403283+Mte90@users.noreply.github.com>
1 parent bcfce7f commit 2c17cba

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

REST_API.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PicoCode provides a production-ready local RAG (Retrieval-Augmented Generation)
99
## Base URL
1010

1111
```
12-
http://127.0.0.1:8000/api
12+
http://127.0.0.1:8080/api
1313
```
1414

1515
## Authentication
@@ -299,7 +299,7 @@ CODING_MODEL=gpt-4o
299299

300300
# Server configuration
301301
UVICORN_HOST=127.0.0.1
302-
UVICORN_PORT=8000
302+
UVICORN_PORT=8080
303303

304304
# File processing
305305
MAX_FILE_SIZE=200000
@@ -313,7 +313,7 @@ MAX_FILE_SIZE=200000
313313
import requests
314314

315315
class PicoCodeClient:
316-
def __init__(self, base_url="http://127.0.0.1:8000/api"):
316+
def __init__(self, base_url="http://127.0.0.1:8080/api"):
317317
self.base_url = base_url
318318

319319
def create_project(self, path, name=None):
@@ -404,8 +404,8 @@ print(suggestion["response"])
404404

405405
PicoCode provides interactive API documentation:
406406

407-
- **Swagger UI**: http://127.0.0.1:8000/docs
408-
- **ReDoc**: http://127.0.0.1:8000/redoc
407+
- **Swagger UI**: http://127.0.0.1:8080/docs
408+
- **ReDoc**: http://127.0.0.1:8080/redoc
409409

410410
These interfaces allow you to:
411411
- Browse all endpoints

ide-plugins/src/main/kotlin/com/picocode/PicoCodeConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PicoCodeConfigurable(private val project: Project) : Configurable {
5353
val state = settings.state
5454

5555
state.serverHost = hostField.text.trim().ifEmpty { "localhost" }
56-
state.serverPort = portField.text.trim().toIntOrNull() ?: 8000
56+
state.serverPort = portField.text.trim().toIntOrNull() ?: 8080
5757

5858
settings.loadState(state)
5959
}

ide-plugins/src/main/kotlin/com/picocode/PicoCodeSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PicoCodeSettings : PersistentStateComponent<PicoCodeSettings.SettingsState
2020

2121
data class SettingsState(
2222
var serverHost: String = "localhost",
23-
var serverPort: Int = 8000
23+
var serverPort: Int = 8080
2424
)
2525

2626
private var state = SettingsState()

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ async def lifespan(app: FastAPI):
178178
uvicorn.run(
179179
"main:app",
180180
host=CFG.get("uvicorn_host", "127.0.0.1"),
181-
port=int(CFG.get("uvicorn_port", 8000)),
181+
port=int(CFG.get("uvicorn_port", 8080)),
182182
reload=True,
183183
access_log=False # Hide access logs
184184
)

utils/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _bool_env(name, default):
3636

3737
# uvicorn host/port (from .env)
3838
"uvicorn_host": os.getenv("UVICORN_HOST", "127.0.0.1"),
39-
"uvicorn_port": int(os.getenv("UVICORN_PORT", "8000")),
39+
"uvicorn_port": int(os.getenv("UVICORN_PORT", "8080")),
4040

4141
# FileWatcher configuration
4242
"file_watcher_enabled": _bool_env("FILE_WATCHER_ENABLED", True),

0 commit comments

Comments
 (0)