How to manage application.conf in several environments with play 2.0?

后端 未结 6 1505
栀梦
栀梦 2020-12-07 18:21

With Play 1.2, I can prefix the configuration keys with the framework ID or application mode as follows:

# Production configuration
%prod.http.port=80
%prod.         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 18:43

    We just have multiple application.conf files, the default is used during development and we have a prod-applicaton.conf that we simply copy into place when we deploy.

提交回复
热议问题