kontor-echo: setup project to show homepage
This commit is contained in:
@@ -138,8 +138,8 @@ func InitConfig() error {
|
||||
viper.SetDefault("db.user", "kontor")
|
||||
viper.SetDefault("db.password", "kontor")
|
||||
viper.SetDefault("db.path", "data/kontor.db")
|
||||
viper.SetDefault("server.port", 8550)
|
||||
viper.SetDefault("gin.mode", "release")
|
||||
viper.SetDefault("server.host", "127.0.0.1")
|
||||
viper.SetDefault("server.port", 8400)
|
||||
// Read the config file
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
// Handle the case where config file is not found
|
||||
|
||||
Reference in New Issue
Block a user