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 build error #1

Open
lookagit opened this issue Sep 15, 2017 · 3 comments
Open

heroku build error #1

lookagit opened this issue Sep 15, 2017 · 3 comments

Comments

@lookagit
Copy link

I ran a npm build-run but memory on heroku exceded so i needed to build on local machine. Now i only execute npm run server on heroku but every time i get this error
Process exited with status 143
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
screenshot from 2017-09-15 14-48-45
I am not very profficient with heroku, maybe i dont know how to set port. When i console log from server.js process.env.PORT i get 4000. I red that heroku dynamically assigns port. Help me please :D
Thanks in advance!

@vladjap
Copy link

vladjap commented Sep 15, 2017

I am having same problem. Trying to figure it out for few days. I fixed it partially at one moment, but only through GraphiQL, In apollo client i got 405 method not allowed. After that I couldn't do nothing.

@leebenson
Copy link
Member

Which deployment method are you using with Heroku? Can you dump the exact CLI commands you're using?

If you're using the Docker/container method, note that the Dockerfile in the project automatically defaults the PORT env var to 4000 -- you'd need to override that with the $PORT coming from Heroku instead.

@lookagit
Copy link
Author

after clone reactql auth example
when i build localy
npm i
npm run build
git add .
git commit
git push heroku master
in procfile web: npm run server
removed dist from .gitignore
screenshot from 2017-09-15 18-24-07

when build on server
npm i
git add .
git commit
git push heroku master
in procfile web: npm run build-run
screenshot from 2017-09-15 18-23-34
if you need any additional infos please let me know.

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

3 participants