fix: fixing domain being required.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fixes gitea issue #5
This commit is contained in:
parent
b0c241ae98
commit
a36e80db99
@ -103,11 +103,8 @@ func readEnv(filePath string) (AppEnv, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func makeApp(env AppEnv, name string) (App, error) {
|
func makeApp(env AppEnv, name string) (App, error) {
|
||||||
// Checking for domain and type as they are required - apps wont work without them
|
// Checking for type as it is required - apps wont work without it
|
||||||
domain, ok := env["DOMAIN"]
|
domain := env["DOMAIN"]
|
||||||
if !ok {
|
|
||||||
return App{}, errors.New("missing DOMAIN variable")
|
|
||||||
}
|
|
||||||
apptype, ok := env["TYPE"]
|
apptype, ok := env["TYPE"]
|
||||||
if !ok {
|
if !ok {
|
||||||
return App{}, errors.New("missing TYPE variable")
|
return App{}, errors.New("missing TYPE variable")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user