add prefix to VCS configuration environment variables
Alan Pearce alan@alanpearce.eu
Sat, 29 Jun 2024 16:47:43 +0200
2 files changed, 3 insertions(+), 3 deletions(-)
M fly.toml → fly.toml
@@ -16,8 +16,8 @@ LISTEN_ADDRESS = "::" TLS = "true" ROOT = "/data" PRODUCTION = "true" - LOCAL_PATH = "/data/website" - REMOTE_URL = "https://git.alanpearce.eu/website.git" + VCS_LOCAL_PATH = "/data/website" + VCS_REMOTE_URL = "https://git.alanpearce.eu/website.git" [[services]] internal_port = 8080
M internal/server/server.go → internal/server/server.go
@@ -106,7 +106,7 @@ } if !runtimeConfig.Development { vcsConfig := &vcs.Config{} - _, err := conf.Parse("", vcsConfig) + _, err := conf.Parse("VCS", vcsConfig) if err != nil { return nil, err }