scala - How to set up prod mode to have configuration file in conf directory (not inside jar)? -
i'm using activator create project , utilize command universal:packagebin
generate .zip
file.
i wondering if it's possible set application read configuration file conf
folder instead of configuration classpath ( .conf
file within jar).
is possible? if it's, how can it?
see https://www.playframework.com/documentation/2.3.x/productionconfiguration mechanism of telling play application pickup config from.
to tie in universal:packagebin, pass -dconfig.file
script within bin directory. e.g. if application called foo:
unzip foo-1.0-snapshot.zip foo-1.0-snapshot/bin/foo -dconfig-file=/path/to/app.conf
scala playframework-2.0 typesafe-activator
No comments:
Post a Comment