I install the pm2 using npm install -g pm2
then when I run my node application using
pm2 start app.js
nothing is happening. when I run the command in terminal, it just go down another line. No errors or warnings shows in the terminal. I can run the application using nodejs app.js . Any kind of help would be appreciated. Thanks.
pm2 list
. There's a good chance it's just running in the background. – Supportableconsole.log()
in a log file that can be viewed by using thepm2 logs
command. This is a very useful feature which automatically implements logging for you (instead of manually using some logging library like winston or log4js etc.) and also decouples the logging logic completely from your application (which is a good thing) – Sobriquet