lileio / lile

Easily generate gRPC services in Go ⚡️
MIT License
1.5k stars 88 forks source link

Set lile port from PORT environment variable #43

Closed oz closed 6 years ago

oz commented 6 years ago

Considering that the default port for Prometheus is read from PROMETHEUS_PORT environment variable, we found it would be useful if the default Lile server did the same using the PORT environment variable.

arbarlow commented 6 years ago

Hi @oz, I agree! But i've already made some changes to how that works here, https://github.com/lileio/lile/blob/v2/lile.go#L77 in V2, which I hope to release soon. I'm hoping you're ok with me closing this as that will then be available there