chore(vscode): unify Launch/Follow/Stop Backend tasks; Delve on 2346
This commit is contained in:
Vendored
+1
-31
@@ -6,7 +6,7 @@
|
|||||||
"type": "go",
|
"type": "go",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"mode": "remote",
|
"mode": "remote",
|
||||||
"port": 2345,
|
"port": 2346,
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"debugAdapter": "legacy",
|
"debugAdapter": "legacy",
|
||||||
"substitutePath": [
|
"substitutePath": [
|
||||||
@@ -17,41 +17,11 @@
|
|||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}/src",
|
"cwd": "${workspaceFolder}/src",
|
||||||
"showLog": true,
|
"showLog": true,
|
||||||
// "trace": "verbose",
|
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"hidden": false,
|
"hidden": false,
|
||||||
"group": "KeepNote",
|
"group": "KeepNote",
|
||||||
"order": 1
|
"order": 1
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Launch browser",
|
|
||||||
"type": "editor-browser",
|
|
||||||
"request": "launch",
|
|
||||||
"url": "http://localhost:7000",
|
|
||||||
"presentation": {
|
|
||||||
"hidden": true,
|
|
||||||
"group": "",
|
|
||||||
"order": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Launch dev server (python)",
|
|
||||||
"type": "debugpy",
|
|
||||||
"module": "http.server",
|
|
||||||
"args": ["7000", "-d", "${workspaceFolder:KeepNote}/dev/"],
|
|
||||||
"request": "launch",
|
|
||||||
"presentation": {
|
|
||||||
"hidden": true,
|
|
||||||
"group": "",
|
|
||||||
"order": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"compounds": [
|
|
||||||
{
|
|
||||||
"name": "Launch Debug Dev UI",
|
|
||||||
"configurations": ["Launch dev server (python)", "Launch browser"]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Vendored
+12
-16
@@ -2,29 +2,25 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Start KeepNote Environment",
|
"label": "Launch Backend",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "docker compose -f docker-compose.debug.yaml up --build",
|
"command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate",
|
||||||
"isBackground": true,
|
|
||||||
"problemMatcher": [
|
|
||||||
{
|
|
||||||
"pattern": {
|
|
||||||
"regexp": "^.*$"
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"activeOnStart": true,
|
|
||||||
"beginsPattern": "Building",
|
|
||||||
"endsPattern": " ✔ Container"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"reveal": "always",
|
"reveal": "always",
|
||||||
"panel": "shared"
|
"panel": "shared"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Stop KeepNote Environment",
|
"label": "Follow Backend Logs",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "docker compose -f docker-compose.debug.yaml logs -f",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "shared"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Stop Backend",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "docker compose -f docker-compose.debug.yaml down",
|
"command": "docker compose -f docker-compose.debug.yaml down",
|
||||||
"presentation": {
|
"presentation": {
|
||||||
|
|||||||
@@ -22,9 +22,10 @@ services:
|
|||||||
# Expose ports: host:container
|
# Expose ports: host:container
|
||||||
ports:
|
ports:
|
||||||
- "8081:8080" # Application port
|
- "8081:8080" # Application port
|
||||||
# Delve: no host port — auth-debug owns 2345; attach via the container's
|
# Delve: unique host port per service (auth-debug owns 2345), so the Go
|
||||||
# 2345 when needed.
|
# attach launch config reaches Air's Delve listener (in-container 2345)
|
||||||
# - "8081:8081" # HTTP Dev interface
|
# from the host without conflicts.
|
||||||
|
- "2346:2345" # Delve debugger port
|
||||||
|
|
||||||
|
|
||||||
# Volume mounts - THE KEY TO HOT RELOADING
|
# Volume mounts - THE KEY TO HOT RELOADING
|
||||||
|
|||||||
Reference in New Issue
Block a user