I am using NodeJS with Molecular, using "npm run dev" to run the application. When the console closes the application is getting down, how to run the application as background service, while in NodeJS I use "Forever" module, can i use it or any other module to run the application.
Thanks in advance
I had found the solution, added below commands in scripts of package.json fixed the issue.
"start": "forever start --minUptime 1000 --spinSleepTime 1000 ./node_modules/.bin/moleculer-runner --instances=max services",
"stop": "forever stop ./node_modules/.bin/moleculer-runner",
docker is nice, but could be overcomplicated in some cases. you can just install pm2
then
to start app and you can start many of them..
view started apps
save list
ensure it will start your app(s) after reboot