From 5799dccb9bbcb521b335f6acc6bdb422a81e5e0e Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Mon, 17 Jul 2023 09:57:30 -0400 Subject: [PATCH] Move config files --- cmd/gateway/main.go | 2 +- cmd/server/main.go | 2 +- cmd/gateway/config.yaml => config/gateway.yaml | 0 cmd/server/config.yaml => config/server.yaml | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename cmd/gateway/config.yaml => config/gateway.yaml (100%) rename cmd/server/config.yaml => config/server.yaml (100%) 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