We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assume I have the following ZIO HTTP App:
object MainApp extends ZIOAppDefault { def run = Server.serve( Routes( Method.GET / "hello" -> handler(Response.ok), ), ).provide( Server.live, ZLayer.fromZIO(ZIO.config(Server.Config.config)).debug) ) }
If of set:
export BINDING_PORT=3000
But it doesn't respect it and after debugging find out that it requires BINDING-PORT
BINDING-PORT
The workaround is to map key names using Server.Config.config.mapKey(_.replace('-', '_')) which is not idiomatic.
Server.Config.config.mapKey(_.replace('-', '_'))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Assume I have the following ZIO HTTP App:
If of set:
But it doesn't respect it and after debugging find out that it requires
BINDING-PORT
The workaround is to map key names using
Server.Config.config.mapKey(_.replace('-', '_'))
which is not idiomatic.The text was updated successfully, but these errors were encountered: