Skip to content
This repository has been archived by the owner on Sep 9, 2018. It is now read-only.

Unable To Run mongodb-rest using pm2 #22

Open
richardwlu opened this issue Apr 12, 2016 · 1 comment
Open

Unable To Run mongodb-rest using pm2 #22

richardwlu opened this issue Apr 12, 2016 · 1 comment

Comments

@richardwlu
Copy link

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
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants