fix: no domain checks if no DOMAIN=... configured
Closes coop-cloud/organising#353
This commit is contained in:
parent
54646650c7
commit
c72462e0b6
|
@ -140,9 +140,13 @@ func DeployAction(c *cli.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !NoDomainChecks {
|
if !NoDomainChecks {
|
||||||
domainName := app.Env["DOMAIN"]
|
domainName, ok := app.Env["DOMAIN"]
|
||||||
if _, err = dns.EnsureDomainsResolveSameIPv4(domainName, app.Server); err != nil {
|
if ok {
|
||||||
logrus.Fatal(err)
|
if _, err = dns.EnsureDomainsResolveSameIPv4(domainName, app.Server); err != nil {
|
||||||
|
logrus.Fatal(err)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logrus.Warn("skipping domain checks as no DOMAIN=... configured for app")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logrus.Warn("skipping domain checks as requested")
|
logrus.Warn("skipping domain checks as requested")
|
||||||
|
|
Loading…
Reference in New Issue