all repos — website @ e8221541404a8d2ca0758d48ba5fe9c85f9067ac

My website

add prefix to VCS configuration environment variables
Alan Pearce alan@alanpearce.eu
Sat, 29 Jun 2024 16:47:43 +0200
commit

e8221541404a8d2ca0758d48ba5fe9c85f9067ac

parent

eaeb9bc26a696cc00888e4a7fbcb9dd6ab638c7a

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M fly.tomlfly.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.gointernal/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
 		}