chore(vscode): background Launch Backend + Debug Backend auto start/stop
This commit is contained in:
Vendored
+24
@@ -1,6 +1,30 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug Backend",
|
||||
"type": "go",
|
||||
"request": "attach",
|
||||
"mode": "remote",
|
||||
"port": 2346,
|
||||
"host": "127.0.0.1",
|
||||
"debugAdapter": "legacy",
|
||||
"substitutePath": [
|
||||
{
|
||||
"from": "${workspaceFolder}/src",
|
||||
"to": "/app"
|
||||
}
|
||||
],
|
||||
"cwd": "${workspaceFolder}/src",
|
||||
"showLog": true,
|
||||
"preLaunchTask": "Launch Backend",
|
||||
"postDebugTask": "Stop Backend",
|
||||
"presentation": {
|
||||
"hidden": false,
|
||||
"group": "KeepNote",
|
||||
"order": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Attach to KeepNote (Air)",
|
||||
"type": "go",
|
||||
|
||||
Vendored
+14
-1
@@ -4,7 +4,20 @@
|
||||
{
|
||||
"label": "Launch Backend",
|
||||
"type": "shell",
|
||||
"command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate",
|
||||
"command": "docker compose -f docker-compose.debug.yaml up -d --force-recreate && until nc -z 127.0.0.1 2346 >/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"
|
||||
|
||||
Reference in New Issue
Block a user