diff --git a/core.go b/core.go index d449635..a2c8a2a 100644 --- a/core.go +++ b/core.go @@ -36,7 +36,6 @@ var cacheC CacheConfig var db *gorm.DB var mailer *Mailer var basePath string -var runMode string var disableEvents bool = false //go:embed all:template @@ -108,13 +107,11 @@ func (app *App) Run(router *httprouter.Router) { } useHttps, _ := strconv.ParseBool(useHttpsStr) - if runMode == "dev" { - fmt.Printf("Welcome to Goffee\n") - if useHttps { - fmt.Printf("Listening on https \nWaiting for requests...\n") - } else { - fmt.Printf("Listening on port %s\nWaiting for requests...\n", portNumber) - } + fmt.Printf("Welcome to Goffee\n") + if useHttps { + fmt.Printf("Listening on https \nWaiting for requests...\n") + } else { + fmt.Printf("Listening on port %s\nWaiting for requests...\n", portNumber) } // check if use letsencrypt @@ -180,7 +177,7 @@ func (app *App) RegisterRoutes(routes []Route, router *httprouter.Router) *httpr } } - // check if enable core services + // check if use letsencrypt UseCoreServicesStr := os.Getenv("App_USE_CORESERVICES") if UseCoreServicesStr == "" { UseCoreServicesStr = "false" @@ -574,10 +571,6 @@ func (app *App) SetBasePath(path string) { basePath = path } -func (app *App) SetRunMode(runmode string) { - runMode = runmode -} - func DisableEvents() { disableEvents = true }