1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-10 22:41:25 +02:00

Added sitemap to webapp

This commit is contained in:
Lee Brown
2019-08-06 17:04:37 -08:00
parent 7daac21138
commit e54702712d
10 changed files with 98 additions and 86 deletions

View File

@@ -2552,8 +2552,6 @@ func ServiceDeploy(log *log.Logger, req *serviceDeployRequest) error {
pks = append(pks, k)
}
// Read the defined json task definition.
dat, err := EcsReadTaskDefinition(req.ServiceDir, req.Env)
if err != nil {
@@ -2602,13 +2600,13 @@ func ServiceDeploy(log *log.Logger, req *serviceDeployRequest) error {
replaced := make(map[string]bool)
for _, m := range matches {
m = strings.Trim(m, "{}")
if replaced[m] {
continue
}
replaced[m] = true
newVal := os.Getenv(m)
envKey := strings.Trim(m, "{}")
newVal := os.Getenv(envKey)
log.Printf("\t\t\t%s -> %s", m, newVal)
jsonStr = strings.Replace(jsonStr, m, newVal, -1)
}