Play framework overriding `application.conf` values based on environment

后端 未结 2 1606
孤独总比滥情好
孤独总比滥情好 2021-01-24 15:52

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

2条回答
  •  悲&欢浪女
    2021-01-24 16:36

    This works if you provide the command line argument first

    sbt -Dconfig.resource=qa.conf run
    

提交回复
热议问题