How can I run a project on node.js (I use express.js as the main framework) so that it works in the background and does not depend on the user session?

    1 answer 1

    When you disconnect, all processes running in your session are killed. You need to run the node as a daemon.

    Options:

    1. Use a module like forever or pm2 .
    2. Nohup nohup node app.js > output.log &
    3. Screen - a terminal that will not die when you disconnect.
    • Thank you friend. Forever what you need =) - Egor Kulik