play! application.conf content that's bit of confusing

微笑、不失礼 提交于 2020-01-05 08:09:48

问题


I am using play 1.2.3, in the application.conf, it has the following settings. What does each setting mean? It seems both are turned on, which one will take the priority? And also, if I remove the first setting (DEV mode), I don't get the PROD mode when run the app, am I missing anything?

# Application mode
# ~~~~~
# Set to dev to enable instant reloading and other development help.
# Otherwise set to prod.
application.mode=dev
%prod.application.mode=prod

回答1:


application.mode is run by default.

the other one runs when you are running with a prod mode switch. For example, if you start your application like the following

play run myapp --%prod

it will use the prod.application.mode config.

This means that you can define many different configurations for certain environments. For more information, check out this information on the Play documentation.



来源:https://stackoverflow.com/questions/8248456/play-application-conf-content-thats-bit-of-confusing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!