diff --git a/config/config.go b/config/config.go index 3358dfd..0b9bc90 100644 --- a/config/config.go +++ b/config/config.go @@ -98,7 +98,7 @@ func GetConfig(args map[string]string) (*Config, error) { LogDir: GetEnvDefault("LOG_DIR", ""), } - if config.SecretKey == "" { + if config.SecretKey == "" && args["dbver"] != "true" { return nil, errors.New("Envar not set: SECRET_KEY") }