Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

pm2 - How to check output in terminal in production

i have a project serving on production which use pm2 to handle my nodejs server. How could i to check the bash output? Because i need to debug what's wrong in production, and it work in local machine. Which server is serve from digitalOcean.

Appreciate for your command.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can view the stdout or stderr (bash output) of a pm2-run project with pm2 logs

Read the documentation for more details


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...