Merge pull request #449 from ronanM/patch-1

Command line for alternative config `-Dconfig.file`
This commit is contained in:
Havoc Pennington 2017-02-08 09:25:26 -05:00 committed by GitHub
commit 93d70f6739

View File

@ -251,7 +251,8 @@ library examples in `examples/` show how to accept a custom config
while defaulting to `ConfigFactory.load()`.
For applications using `application.{conf,json,properties}`,
system properties can be used to force a different config source:
system properties can be used to force a different config source
(e.g. from command line `-Dconfig.file=path/to/config-file`):
- `config.resource` specifies a resource name - not a
basename, i.e. `application.conf` not `application`