aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-03 00:09:26 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-03 00:09:26 +0530
commit9df37d57e454c49b2c55418ad53b6d49a2be2589 (patch)
tree0ef8e8c56454c9e9e72ce1a7ab8dfbefdde9a0c2
parentdc2ed72c3db40684f76acf9b5e71597d6da8fbbd (diff)
replaced production_mode with debug_mode in config filev0.1.0
-rw-r--r--conf/conf.go2
-rw-r--r--main.go4
-rw-r--r--openbills.toml2
3 files changed, 4 insertions, 4 deletions
diff --git a/conf/conf.go b/conf/conf.go
index 8afe1f4..7531e4f 100644
--- a/conf/conf.go
+++ b/conf/conf.go
@@ -84,7 +84,7 @@ func init() {
}
viper.SetDefault("port", "8765")
- viper.SetDefault("production_mode", false)
+ viper.SetDefault("debug_mode", false)
viper.SetDefault("security.min_password_length", 12)
viper.SetDefault("security.max_password_length", 72)
diff --git a/main.go b/main.go
index a1d3e32..6595c7c 100644
--- a/main.go
+++ b/main.go
@@ -38,10 +38,10 @@ import (
"log"
)
-const OPENBILLS_VERSION = "v0.0.14"
+const OPENBILLS_VERSION = "v0.1.0"
func init() {
- if viper.GetBool("production_mode") {
+ if !viper.GetBool("debug_mode") {
gin.SetMode(gin.ReleaseMode)
}
}
diff --git a/openbills.toml b/openbills.toml
index dd37e22..f10f666 100644
--- a/openbills.toml
+++ b/openbills.toml
@@ -1,5 +1,5 @@
port = 8765
-production_mode = false
+debug_mode = true
[database]
username = "openbills"