Hello
We have integrated the APIs and now want to run the system in production mode.
Also, we want to run the service as daemon so that we don't have to keep Terminal open all the time. We tried to run 'forever' package but it's not working.
Please help.
Thank You.
hi , if you want to run API as daemon, first give$ npm run build ,$ npm install forever -g and then give$ sudo NODE_ENV=production forever start dist/app.js, API will run at background without any interupts
$ npm run build
$ npm install forever -g
$ sudo NODE_ENV=production forever start dist/app.js
spurtcoder
Hi, Sudo is a command linux? in windows how is it?
Thank you 🙂
Maximiliano
For Windows use below command
cross-env NODE_ENV=development node dist/app.js