From e09b281904d36f36be6a1f2a5d06d53aa85fd6f3 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Fri, 27 Nov 2020 19:35:39 -0500 Subject: [PATCH] problem: unclear how to specify path to the config --- docs/03-server-config.adoc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/03-server-config.adoc b/docs/03-server-config.adoc index 6bdcb26e..e2ed9b4d 100644 --- a/docs/03-server-config.adoc +++ b/docs/03-server-config.adoc @@ -1,7 +1,12 @@ == Server Configuration -Dshackle server tries to load its configuration from `/etc/dshackle/dshackle.yaml`, if it can't find a file at that path -it tries to load file `dshackle.yaml` from current working directory.If none of them found server fails to run with an error. +By default, the Dshackle looks for config in the following locations: + +1. Path specified by _optional_ `--configPath <...>` command line option +2. `/etc/dshackle/dshackle.yaml` +3. `./dshackle.yaml` (i.e. in the current working dir) + +If none found the application exists with an error. .Example dshackle.yaml configuration: [source,yaml]