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() {
|
func (web *Web) init() {
|
||||||
web.urlCache = make(map[string]string, 5)
|
web.urlCache = make(map[string]string, 5)
|
||||||
|
if !viper.GetBool("gin.debug") {
|
||||||
|
gin.SetMode(gin.ReleaseMode)
|
||||||
|
}
|
||||||
web.validateProxyURL()
|
web.validateProxyURL()
|
||||||
web.initDB()
|
web.initDB()
|
||||||
web.initRouter()
|
web.initRouter()
|
||||||
|
|
1
todo.md
1
todo.md
|
@ -9,5 +9,4 @@
|
||||||
- postgresql+apprise+browserless
|
- postgresql+apprise+browserless
|
||||||
- add kube yaml example?
|
- add kube yaml example?
|
||||||
- organize docs?
|
- organize docs?
|
||||||
- disable gin debug
|
|
||||||
- add favicon
|
- add favicon
|
Loading…
Add table
Reference in a new issue