Zainstaluj PM2
npm install pm2 -g
Elated Eland
npm install pm2 -g
pm2 start <process>
pm2 stop <process>
pm2 restart <process>
pm2 delete <process>
pm2 delete <process>
pm2 start app.js --name "my-api"
pm2 start web.js --name "web-interface"
pm2 stop web-interface
pm3 restart web-interface