example-auth icon indicating copy to clipboard operation
example-auth copied to clipboard

heroku build error

Open lookagit opened this issue 7 years ago • 3 comments

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!

lookagit avatar Sep 15 '17 12:09 lookagit

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.

vladjap avatar Sep 15 '17 13:09 vladjap

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.

leebenson avatar Sep 15 '17 15:09 leebenson

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.

lookagit avatar Sep 15 '17 16:09 lookagit