Browse Source

Move config files

master
parent
commit
5799dccb9b
Signed by: chris GPG Key ID: 3025DCBD46F81C0F
  1. 2
      cmd/gateway/main.go
  2. 2
      cmd/server/main.go
  3. 0
      config/gateway.yaml
  4. 0
      config/server.yaml

2
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"`

2
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"`

0
cmd/gateway/config.yaml → config/gateway.yaml

0
cmd/server/config.yaml → config/server.yaml

Loading…
Cancel
Save