diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7da08ca --- /dev/null +++ b/.vscode/launch.json @@ -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 + }, + ] +} \ No newline at end of file