Create VSCode launch configs
This commit is contained in:
parent
4ebacf6753
commit
c554cb5936
1 changed files with 50 additions and 0 deletions
50
.vscode/launch.json
vendored
Normal file
50
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Dev Server",
|
||||||
|
"type": "node",
|
||||||
|
"program": "${workspaceFolder}/main.ts",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"envFile": "${workspaceFolder}/local.env",
|
||||||
|
"runtimeExecutable": "/usr/bin/deno",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"run",
|
||||||
|
"--watch",
|
||||||
|
"--no-prompt",
|
||||||
|
"--allow-read='.,$HOME/.cache/deno,$HOME/.cache/node_modules'",
|
||||||
|
"--allow-env=DOTINO_POSTGRES_STRING,DOTINO_STRATZ_URL,DOTINO_STRATZ_KEY",
|
||||||
|
"--allow-sys=uid,gid",
|
||||||
|
"--allow-net=0.0.0.0:8080",
|
||||||
|
"--inspect-wait",
|
||||||
|
"src/main.ts"
|
||||||
|
],
|
||||||
|
"attachSimplePort": 9229
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Init database",
|
||||||
|
"type": "node",
|
||||||
|
"program": "${workspaceFolder}/main.ts",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"envFile": "${workspaceFolder}/local.env",
|
||||||
|
"runtimeExecutable": "/usr/bin/deno",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"run",
|
||||||
|
"--no-prompt",
|
||||||
|
"--allow-read='.'",
|
||||||
|
"--allow-env=DOTINO_POSTGRES_STRING",
|
||||||
|
"--allow-sys=uid,gid",
|
||||||
|
"--allow-net=0.0.0.0:8080",
|
||||||
|
"--inspect-wait",
|
||||||
|
"src/database/init/index.ts"
|
||||||
|
],
|
||||||
|
"attachSimplePort": 9229
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue