I have gone through so many questions regarding forever module for nodejs APP, but did not find my answer.
Forever module is working fine on a Linux box
use forever list
then forever stop with the id, e.g. forever stop 0
Here is a sample output
user@some-server]$ forever list
info: Forever processes running
data: uid command script forever pid id logfile uptime
data: [0] 9Xzw ng serve --host 0.0.0.0 --port 4009 13164 29579 /home/ec2-user/.forever/9Xzw.log 7:1:20:50.412
data: [1] wOj1 npm run-script app-start-dev 29500 24978 /home/ec2-user/.forever/wOj1.log 0:0:5:3.433
Here 0 is like an index which is in the first column of the output. If there are two processes running, we can use indexes like 0 or 1 to stop the first or the second process.
forever stop 0 OR forever stop 1