You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object ServicingConfig : ConfigSpec("servicing") {
val baseURL by required<String>("baseURL")
}
val config = Config {
addSpec(ServicingConfig)
}.withSource(
Source.from.hocon.resource("application.conf") +
Source.from.env()
)
with application.conf:
servicing {
baseURL = "https://service/api"
}
the result is that config is empty. However, if I remove Source.from.env() it works as expected. My expectation was that I can override variables set in the hocon config with environmental variables (on a per environment basis for example), the absence of an environmental variable won't displace the defined variable in HOCON. Is that an unrealistic expectation?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
Hi - trying out
Konf
and seeing this behaviour:with
application.conf
:the result is that
config
is empty. However, if I removeSource.from.env()
it works as expected. My expectation was that I can override variables set in the hocon config with environmental variables (on a per environment basis for example), the absence of an environmental variable won't displace the defined variable in HOCON. Is that an unrealistic expectation?The text was updated successfully, but these errors were encountered: