chore: default commands to config.yaml
This commit is contained in:
+2
-3
@@ -87,8 +87,8 @@ func run() error {
|
||||
}
|
||||
|
||||
srv := &http.Server{
|
||||
Addr: fmt.Sprintf("%s:%d", config.ApplicationConfig.Host, config.ApplicationConfig.Port),
|
||||
Handler: sdk.Runtime.GetEngine(),
|
||||
Addr: fmt.Sprintf("%s:%d", config.ApplicationConfig.Host, config.ApplicationConfig.Port),
|
||||
Handler: sdk.Runtime.GetEngine(),
|
||||
ReadTimeout: time.Duration(config.ApplicationConfig.ReadTimeout) * time.Second,
|
||||
WriteTimeout: time.Duration(config.ApplicationConfig.WriterTimeout) * time.Second,
|
||||
}
|
||||
@@ -186,4 +186,3 @@ func initRouter() {
|
||||
common.InitMiddleware(r)
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -61,4 +61,3 @@ func run() {
|
||||
fmt.Println("logger:", string(loggerConfig))
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -116,4 +116,3 @@ func genFile() error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user