Does anybody know a good way to handle runtime con...
# javascript
a
Does anybody know a good way to handle runtime configuration? When working with serverside projects it is always easy, when developing, to start different Spring Boot configurations for instance by passing different Gradle parameters. How would I do something like that in Kotlin/Js?
b
I've written https://github.com/mpetuska/application.env for this. In short, you would have multiple application.<env>. env files in your resources and then would rename one of them to application.env during gradle processResources task depending on cli args
a
That sounds like a good solution. Great, I'll give it a try