Play 2.6.x Scala
I have a default application.conf within the folder {project}/conf/ but I\'d like to override some values depending on the env
This works if you provide the command line argument first
sbt -Dconfig.resource=qa.conf run
Your question is about HOCON, in case you did not realize it.
Without seeing your application.conf I can only provide a generic answer. Here is an example of providing a default value for akka.log-config-on-start, which will be overridden by a Java system property or an environment variable called CONFIG_DUMP, if defined:
akka {
log-config-on-start = false
log-config-on-start = ${?CONFIG_DUMP}
}
This feature of HOCON is documented here.