From 338360096cc515771acf197ff933cdf5845eb8ac Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 27 Mar 2022 21:06:16 +0200 Subject: [PATCH] feat: pass domain to new app envs See https://git.coopcloud.tech/coop-cloud/organising/issues/304. --- pkg/config/app.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/config/app.go b/pkg/config/app.go index c59f2f6e..3f66bad7 100644 --- a/pkg/config/app.go +++ b/pkg/config/app.go @@ -288,7 +288,13 @@ func TemplateAppEnvSample(recipeName, appName, server, domain string) error { return err } - if err := tpl.Execute(file, struct{ Name string }{recipeName}); err != nil { + type templateVars struct { + Name string + Domain string + } + + tvars := templateVars{Name: recipeName, Domain: domain} + if err := tpl.Execute(file, tvars); err != nil { return err }