Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

"node app.js" does not properly start server locally #68

Closed
austntatious opened this issue Apr 26, 2016 · 4 comments
Closed

"node app.js" does not properly start server locally #68

austntatious opened this issue Apr 26, 2016 · 4 comments

Comments

@austntatious
Copy link

austntatious commented Apr 26, 2016

when running the app locally, the program hangs at the end of the app.js file, with
connect-to-mongo
as the last console.log, instead of throwing any errors

@kognate
Copy link

kognate commented Apr 26, 2016

Are you able to connect to the mongo server on your local host?

@austntatious
Copy link
Author

yes, the mongo connection completes okay, but from what I see, it seems like starting the app with node app.js may cause an issue, since the server.listen command is in the server.js file. so the app starts, but it doesn't ever load the web server or start listening for requests

@austntatious
Copy link
Author

Oh I see, the package.json shows that npm start will run node server.js The README should be updated accordingly, since it is still instructing us to run node app.js

@jzhang300
Copy link
Contributor

Good catch, I just updated the readme to say npm start instead.

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

3 participants