I connect to my remote server via ssh. Then I start my node.js app with Forever. Everything works fine until I close my console window. How to run node.js app FOREVER on my
This is only a partial answer for Windows. I’ve created a single line Visual Basic Script called app.vbs
that will start your node application within a hidden window:
CreateObject("Wscript.Shell").Run "node app.js", 0
To execute it automatically at startup, open the %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\
directory and add a shortcut to the app.vbs
file.
More info at: https://keestalkstech.com/2016/07/start-nodejs-app-windowless-windows/