diff --git a/docker-compose.yml b/docker-compose.yml index ae1ac6c..aefc058 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,6 @@ services: command: > sh -c "cp -rn /app/public/default_icons/* /app/public/icons && ./beancount-gs -p 80" volumes: - - "${dataPath:-/data/beancount}:/beancount" + - "${dataPath:-/data/beancount}:${dataPath:-/data/beancount}" - "${dataPath:-/data/beancount}/icons:/app/public/icons" - "${dataPath:-/data/beancount}/config:/app/config" \ No newline at end of file diff --git a/script/config.go b/script/config.go index fefcb01..97c27d5 100644 --- a/script/config.go +++ b/script/config.go @@ -199,7 +199,7 @@ func LoadLedgerConfigMap() error { } err = json.Unmarshal(fileContent, &ledgerConfigMap) if err != nil { - LogSystemError("Failed unmarshal config file (" + path + ")") + LogSystemError("Failed unmarshal ledger_config file (" + path + ")") return err } LogSystemInfo("Success load ledger_config file (" + path + ")")