diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index d104db9..bb22a2a 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -13,7 +13,7 @@ import ( "gopkg.in/yaml.v3" ) -var configPath = flag.String("config", "./config.yaml", "--config=config.yaml") +var configPath = flag.String("config", "./config/gateway.yaml", "--config=./config/gateway.yaml") type config struct { Port int `yaml:"port"` diff --git a/cmd/server/main.go b/cmd/server/main.go index 0cc0032..202ae11 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -16,7 +16,7 @@ import ( "gorm.io/gorm" ) -var configPath = flag.String("config", "./config.yaml", "--config=config.yaml") +var configPath = flag.String("config", "./config/server.yaml", "--config=./config/server.yaml") type config struct { Port int `yaml:"port"` diff --git a/cmd/gateway/config.yaml b/config/gateway.yaml similarity index 100% rename from cmd/gateway/config.yaml rename to config/gateway.yaml diff --git a/cmd/server/config.yaml b/config/server.yaml similarity index 100% rename from cmd/server/config.yaml rename to config/server.yaml