From e8221541404a8d2ca0758d48ba5fe9c85f9067ac Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 29 Jun 2024 16:47:43 +0200 Subject: add prefix to VCS configuration environment variables --- fly.toml | 4 ++-- internal/server/server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fly.toml b/fly.toml index 1194b67..7508dd6 100644 --- a/fly.toml +++ b/fly.toml @@ -16,8 +16,8 @@ primary_region = "ams" 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 diff --git a/internal/server/server.go b/internal/server/server.go index 890569c..3c43812 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -106,7 +106,7 @@ func New(runtimeConfig *Config) (*Server, error) { if !runtimeConfig.Development { vcsConfig := &vcs.Config{} - _, err := conf.Parse("", vcsConfig) + _, err := conf.Parse("VCS", vcsConfig) if err != nil { return nil, err } -- cgit 1.4.1