I heard somewhere that this is possible. The problem is that on the vps server node.js is automatically cut down and I do not know how to make it work all the time.
1 answer
There are already quite a few ready-made solutions for this problem. Among them, for example, pm2 . Just install as a global NPM package:
sudo npm i pm2 -g and in the simplest case, just run your program using this utility:
sudo pm2 start app.js |