playframework - Why "play run" doesn't read my configuration file? -


i'm using "play run" when implement on play framework because supports auto-compile feature. seems "play run" doesn't read configuration file specify. i'm running play framework follows:

$ play "run -dconfig.resource=application.conf" 

but configurations written on application.conf totally ignored. if "play start" instead, configuration file works fine. there way specify configuration file "play run"?

i'm using play framework 2.1.1 on macos 10.8.3.

play doesn't seem listen configuration option config.resource. quick google search led this blog post, suggested use config.file instead. value here file name, relative play application's root directory.

well, create proper answer, had research how change main configuration file. i've found play checks config.file property, , if doesn't exist, uses conf/application.conf.

therefore, way run custom configuration file is

play "run -dconfig.file=application.conf" 

your can either provide file path relative play application's root directory or absolute path.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -