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

后端 未结 6 1487
栀梦
栀梦 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

    You have to define a different configuration file with the appropriate properties

    http://www.playframework.org/documentation/2.0/Configuration

    There is also a inclusion mechanism that helps you define default values in application.conf and overrides only what is needed for production

提交回复
热议问题