-
Notifications
You must be signed in to change notification settings - Fork 1.2k
new project, get undefined as hostname #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Make sure you're running MongoDB. After installing it, run |
that was it. thanks. |
@ibeitia i built my project without mongo (which I think was a prompt question at the beginning of the generator questions, and i said no to Mongo), because the application requires no database. I get the undefined error when starting the application. What would be the right way to handle the issue in this scenario? |
mongod is running, but no matter what I do I still get this error of:
This is a brand new project with fresh install of the generator. Not sure what i'm missing here... |
@chair9design - are you able to access the site (i.e. http://localhost:9000/) once the server starts? The Let me know if this assumption is wrong, and we can continue to debug. |
adding it to I found what was running on port 9000 by running this command. Then confirmed nothing was running on 3000 by changing the above command to:
Once I new 3000 was a safe port, I changed the port to 3000 in my grunt file's Now all is well and seeing 'Allo, 'Allo ! ... hopefully this helps someone else out. |
see above, but to directly answer your question about the server running despite the error message, the answer was no, but that seems to be primarily because I'm running php-fpm on port 9000 so I can reverse proxy some php sites via NGINX. Once I switched the port the server started up. The console log still says undefined, but the app started up once the port was changed, so your commit seem like it will fix the console.log in the |
In ./config/development.js add this line:
that should fix the problem. |
adding |
Express server listening on undefined:9000, in development mode
and app crashes right away when running
grunt serve
The text was updated successfully, but these errors were encountered: