From a36e80db99dbd48675b3a0bafe3b328a935d6e78 Mon Sep 17 00:00:00 2001 From: Roxie Gibson Date: Wed, 21 Jul 2021 08:38:13 +0100 Subject: [PATCH] fix: fixing domain being required. Fixes gitea issue #5 --- config/env.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/config/env.go b/config/env.go index 5b100dde6..56f6ef99f 100644 --- a/config/env.go +++ b/config/env.go @@ -103,11 +103,8 @@ func readEnv(filePath string) (AppEnv, error) { } func makeApp(env AppEnv, name string) (App, error) { - // Checking for domain and type as they are required - apps wont work without them - domain, ok := env["DOMAIN"] - if !ok { - return App{}, errors.New("missing DOMAIN variable") - } + // Checking for type as it is required - apps wont work without it + domain := env["DOMAIN"] apptype, ok := env["TYPE"] if !ok { return App{}, errors.New("missing TYPE variable")