This commit is contained in:
2026-10-18 22:31:16 +01:00
commit ec38e680d6
64 changed files with 7222 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Backend",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 2349,
"host": "127.0.0.1",
"debugAdapter": "legacy",
"substitutePath": [
{
"from": "${workspaceFolder}/src",
"to": "/app"
}
],
"cwd": "${workspaceFolder}/src",
"showLog": true,
"preLaunchTask": "Launch Backend",
"presentation": {
"hidden": false,
"group": "Alarm",
"order": 0
}
},
{
"name": "Attach to Alarm (Air)",
"type": "go",
"request": "attach",
"mode": "remote",
"port": 2349,
"host": "127.0.0.1",
"debugAdapter": "legacy",
"substitutePath": [
{
"from": "${workspaceFolder}/src",
"to": "/app"
}
],
"cwd": "${workspaceFolder}/src",
"showLog": true,
"presentation": {
"hidden": false,
"group": "Alarm",
"order": 1
}
}
]
}
+54
View File
@@ -0,0 +1,54 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Launch Backend",
"type": "shell",
"command": "docker compose -f docker-compose.debug.yaml up -d && until nc -z 127.0.0.1 2349 >/dev/null 2>&1; do sleep 1; done && echo DAE_BACKEND_READY",
"isBackground": true,
"problemMatcher": [
{
"pattern": {
"regexp": "^.*$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "DAE_BACKEND_READY"
}
}
],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"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",
"command": "docker compose -f docker-compose.debug.yaml down",
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
{
"label": "Rebuild Backend Image",
"type": "shell",
"command": "docker compose -f docker-compose.debug.yaml up -d --build",
"presentation": {
"reveal": "always",
"panel": "shared"
}
}
]
}