Open richardwlu opened 8 years ago
I'm not sure what is going wrong.
I tried running 'pm2 start mongodb-rest'. There is a problem this and I do see errors in the log. I'm not exactly sure if this kind of thing is suppose to work with pm2 or not.
Please let me know if you figure this out.
I'm unable to have pm2 manage this app so it can run in the background. However, when I run
node server.js
from the directory, everything is ok. But when I try runningpm2 start server.js --name mongo-api
and checknetstat -tulpn
, nothing is running on the port I have assigned to3001
.I checked the logs but they are all empty. No messages populate onto the command line either when I run from there.
Is anyone aware of a possible reason why this wouldn't be working?