about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 16:47:43 +0200
committerAlan Pearce2024-06-29 16:47:43 +0200
commite8221541404a8d2ca0758d48ba5fe9c85f9067ac (patch)
treec06a6a58ab5003ff046f4d9a7aeed848982e64ce
parenteaeb9bc26a696cc00888e4a7fbcb9dd6ab638c7a (diff)
downloadwebsite-e8221541404a8d2ca0758d48ba5fe9c85f9067ac.tar.lz
website-e8221541404a8d2ca0758d48ba5fe9c85f9067ac.tar.zst
website-e8221541404a8d2ca0758d48ba5fe9c85f9067ac.zip
add prefix to VCS configuration environment variables
-rw-r--r--fly.toml4
-rw-r--r--internal/server/server.go2
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
 		}