I'm new to PM2 and ubuntu-related issues.
I'm running an app using sudo
with the syntax sudo pm2 start app.js --time
.
However, when I tried to check the files in $HOME/.pm2/logs/app-error.log, I couldn't find any logs related to what I logged in the code. I believe sudo pm2 start
is different from pm2 start
, and the log files are only for the pm2 start
.
My question is, how can I check the logs in sudo pm2
?