Hello ! We have a React-Apollo-GraphQL yoga-Pris...
# orm-help
d
Hello ! We have a React-Apollo-GraphQL yoga-Prisma app here, and we have troubles deploying in production. We already deployed our Prisma Server on HEROKU, and it's working well with our Backend and Front-End hosted locally. The problem is, we're struggling deploying the Backend-End on Heroku as well, and make it communicate with Prisma and our Front-End (still hosted locally). (some errors examples that we had :
Copy code
heroku[router]: at=error code=H15 desc="Idle connection" method=GET path="/" host=<http://sheltered-chamber-26085.herokuapp.com|sheltered-chamber-26085.herokuapp.com> request_id=724f3b54-1589-4524-aeac-57014c1d06da fwd="96.20.43.3" dyno=web.1 connect=0ms service=55039ms status=503 bytes= protocol=http
Copy code
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
heroku[web.1]: Stopping process with SIGKILL
heroku[web.1]: Process exited with status 137
heroku[web.1]: State changed from starting to crashed
) Has someone already tried to push a node-GraphQL yoga Server on Heroku, and make it communicate with a Heroku hosted Prisma server ? And how did you connected them with the front ? Someone has some ideas about that issue ? We're real beginners here, so don't hesitate to ask me more details if I'm not clear ^^;
l
I think your issue is Heroku requires the PORT environment variable to be used. https://devcenter.heroku.com/articles/deploying-nodejs
👍 1
d
Thank you for your help ^^ Actually, we just succeeded in deploying our backend on Heroku. Now, we just have to do the same for the front, and we're done ! 😁