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
Wow, I just found a very simple solution:
First, start your process (node app)
forever dist/index.js
run: ^Z cmd + z.
^Z
Then: bg. Yeah.. bg (background). And pum.. you are out.
bg
Finish with exitif you are with sshor just close the terminal.
exit
ssh