apollo-tracing-ruby icon indicating copy to clipboard operation
apollo-tracing-ruby copied to clipboard

Usage on Heroku

Open kmcq opened this issue 7 years ago • 2 comments

Hello! Thanks so much for writing this gem.

The examples mention localhost and following them I got this set up for my local dev environment quite easily. However, I'm not sure what to use a config for when I've deployed the app (we're using Heroku). I'd be happy to write up and make a PR for the README for how to do this if you could point me in the right direction.

Thanks!

kmcq avatar Aug 10 '18 19:08 kmcq

I'd be interested in this as well.

morochena avatar Aug 18 '18 20:08 morochena

To get this working on Heroku, we'd need to be able to dynamically specify the port that the proxy runs on, as Heroku provides the PORT environment variable that it expects your application to service requests on.

The actual server (e.g. Puma) port could be derived from that, static, or random, but we'd need to be able to reliably tell the proxy what port it is on.

I think, ideally, you'd bind the server to a unix socket and have the communication between the proxy and the application server be via that socket.

bjeanes avatar Dec 17 '18 02:12 bjeanes