scala - playframework fall back configuration? -


how let playframework's configuration falls other configuration files if default 1 not exist.

for example, default play use application.conf, if not exist, use c1.conf. if c1.conf not exist, uses c2.conf.

i use play framework 2.3 in scala

thanks.

such feature doesn't exist in play framework. can specify file should used configuration passing 1 of possible properties startup script.

available parameters described in documentation under section called specifying alternative configuration file.

  • -dconfig.resource - allows choice file within application
  • -dconfig.file - sets file outside of application
  • -dconfig.url - uses file loaded given url

if none of properties passed application, it'll use application.conf default one.

to complete task, can write bash script verify whether script want run exists. if so, pass using 1 of aforementioned parameters or use different 1 otherwise.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -