Building gives a build without node process
Acetyld opened this issue · comments
Dion Grendelman commented
Dion Grendelman commented
N.v.m, something went wrong while starting NestJS i think, the TypeORM config was not correct.
But how can i debug this in production, so how can i debug the nodejs part?
ArcherGu commented
Are you using sqlite? I use TypeORM + Sqlite as my database in production and it actually works really well. You can't debug in production mode, but you can debug in development mode, just like a normal node.js application. Below is a simple configuration:
.vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug with npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeArgs": [
"run-script",
"dev"
],
"runtimeExecutable": "npm",
"console": "integratedTerminal"
}
]
}