mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-01 15:37:50 +08:00
chore: mv config
This commit is contained in:
@@ -17,7 +17,7 @@ type TMDB struct {
|
|||||||
|
|
||||||
func LoadConfig() (*Config, error) {
|
func LoadConfig() (*Config, error) {
|
||||||
viper.SetConfigName("config") // name of config file (without extension)
|
viper.SetConfigName("config") // name of config file (without extension)
|
||||||
viper.SetConfigType("yml") // REQUIRED if the config file does not have the extension in the name
|
viper.SetConfigType("yml") // REQUIRED if the config file does not have the extension in the name
|
||||||
viper.AddConfigPath(".")
|
viper.AddConfigPath(".")
|
||||||
viper.AddConfigPath("/app/data")
|
viper.AddConfigPath("/app/data")
|
||||||
|
|
||||||
Reference in New Issue
Block a user