mirror of
https://github.com/dreamstarsky/runbin.git
synced 2026-05-15 14:23:07 +00:00
change default gin mode to release
This commit is contained in:
@@ -19,6 +19,10 @@ func main() {
|
||||
// Load configuration
|
||||
cfg := config.LoadApi("config/server.yaml")
|
||||
|
||||
if cfg.App.Env == "release" {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
|
||||
// Initialize storage
|
||||
var store repository.PasteRepository
|
||||
switch cfg.Storage.Type {
|
||||
|
||||
Reference in New Issue
Block a user