Bind mounted config.yaml does not automatically reload · Issue #151 · TwiN/gatus · GitHub
Skip to content

Bind mounted config.yaml does not automatically reload #151

Closed
@roycyt

Description

Step to reproduce:

$ cat config/config.yaml
services:
  - name: example
    url: "https://example.org/"
    interval: 30s
    conditions:
      - "[STATUS] == 200"
$ docker run \
    --rm \
    -p 8080:8080 \
    -v "$(pwd)"/config/config.yaml:/config/config.yaml \
    twinproduction/gatus

Change the name field in the config/config.yaml.

Observation:

In the HasLoadedConfigurationFileBeenModified function, the result of the comparison of config.lastFileModTime.Unix() != fileInfo.ModTime().Unix() is always false.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions