ashleydavis / mongodb-rest

REST Server for MongoDB (using node.js)
GNU Lesser General Public License v3.0
75 stars 34 forks source link

Unable To Run mongodb-rest using pm2 #22

Open richardwlu opened 8 years ago

richardwlu commented 8 years ago

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 running pm2 start server.js --name mongo-api and check netstat -tulpn, nothing is running on the port I have assigned to 3001.

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?

ashleydavis commented 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.