fix: fist integration test #181
This commit was merged in pull request #189.
This commit is contained in:
@@ -11,7 +11,6 @@ type ServerSettings struct {
|
||||
|
||||
BaseUrl string
|
||||
Environment string
|
||||
DbPath string
|
||||
Smtp *SmtpSettings
|
||||
}
|
||||
|
||||
@@ -61,15 +60,10 @@ func NewServerSettingsFromEnv(env func(string) string) *ServerSettings {
|
||||
Port: env("PORT"),
|
||||
PrometheusEnabled: env("PROMETHEUS_ENABLED") == "true",
|
||||
BaseUrl: env("BASE_URL"),
|
||||
DbPath: env("DB_PATH"),
|
||||
Environment: env("ENVIRONMENT"),
|
||||
Smtp: smtp,
|
||||
}
|
||||
|
||||
if settings.DbPath == "" {
|
||||
settings.DbPath = "./data.db"
|
||||
}
|
||||
|
||||
if settings.BaseUrl == "" {
|
||||
log.Fatal("BASE_URL must be set")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user