I created folder for project, copy package.json
and run npm install
, build locally nestjs project and copy dist into server. Then ran in console node dist/main.js
. For testing I used a base NestJS project (nest new ...) which only return "Hello word" on 3000 port.
Server work fine, but after close of console will stop.
I think problem on VPS (Ubuntu) settings or may be need to add some parameters to NestJS.
Why it not work constantly?
Thanks in advance for any advice.