Open lookagit opened 7 years ago
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.
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.
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
when build on server npm i git add . git commit git push heroku master in procfile web: npm run build-run if you need any additional infos please let me know.
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 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!