I want to run my angular4 app using PM2 it will run but when I am close the terminal it will stop.
On this server already run one application, it is working properly, but in my app it will work when I am open the terminal, otherwise it will stop
pm2 start server.js
I am using this command to run my app but when I am Close the Terminal immediately it will stop, so how can I run this app Forever using PM2.