Skip to content
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

Heroku | Error R10 (Boot timeout) -> Web process failed to bind to $PORT (Solved) #881

Closed
keshavmesta opened this issue Jan 28, 2016 · 0 comments

Comments

@keshavmesta
Copy link

I encountered this issue today while I was trying get this boilerplate app running on Heorku.

Problem statement:
Travis-ci is successfully building & deploying the app on Heroku. However when I visit the site on Heroku, it just throws 'Application Error'.

Root cause:
So I figured out from heroku logs that this is something to do with custom port being set in package.json. This ticket also confirmed that.

Solution:
Delete the PORT parameter from production betterScripts in package.json so that it can be picked from process.env.PORT at runtime.
Should look like this after edit:
"start-prod": { "command": "node ./bin/server.js", "env": { "NODE_PATH": "./src", "NODE_ENV": "production", "APIPORT": 3030 }

@keshavmesta keshavmesta changed the title Heroku | Error R10 (Boot timeout) -> Web process failed to bind to $PORT Heroku | Error R10 (Boot timeout) -> Web process failed to bind to $PORT (Solved) Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant