gin debug/release option
This commit is contained in:
parent
a6a8fafcf5
commit
2ee7df1d31
2 changed files with 3 additions and 1 deletions
3
main.go
3
main.go
|
@ -53,6 +53,9 @@ func newWeb() *Web {
|
|||
|
||||
func (web *Web) init() {
|
||||
web.urlCache = make(map[string]string, 5)
|
||||
if !viper.GetBool("gin.debug") {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
web.validateProxyURL()
|
||||
web.initDB()
|
||||
web.initRouter()
|
||||
|
|
1
todo.md
1
todo.md
|
@ -9,5 +9,4 @@
|
|||
- postgresql+apprise+browserless
|
||||
- add kube yaml example?
|
||||
- organize docs?
|
||||
- disable gin debug
|
||||
- add favicon
|
Loading…
Add table
Reference in a new issue