reactql / example-auth

User auth, session & JWT example for ReactQL
48 stars 17 forks source link

heroku build error #1

Open lookagit opened 7 years ago

lookagit commented 7 years ago

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 commented 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.

leebenson commented 7 years ago

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 commented 7 years ago

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.