CentOs, Node server startup

: my operation procedure is as follows
enter pm2 start dev
to the startup file directory
View the process pm2 list
show that the process just started successfully has an error
View the log pm2 log

I can start

by using the original method cross-env NODE_ENV=dev node server

[question]

pm2  ;
 
Mar.03,2021

pm2 will stop automatically after 15 restarts. But when you look at log, you really don't see what's wrong.


pm2 start dev should correspond to node dev
look at the document PM2 instruction

.
Menu