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
Post a Comment