iris/_examples/configuration/multi-environments
Gerasimos (Makis) Maropoulos 3bd3117182
Some checks failed
CI / Test (1.23.x) (push) Successful in 14m54s
CodeQL / Analyze (go) (push) Failing after 5m7s
update dependencies
2024-12-05 02:09:59 +02:00
..
api add a new example 2022-06-04 02:42:33 +03:00
cmd add a new example 2022-06-04 02:42:33 +03:00
go.mod update dependencies 2024-12-05 02:09:59 +02:00
go.sum update dependencies 2024-12-05 02:09:59 +02:00
main.go add a new example 2022-06-04 02:42:33 +03:00
README.md add a new example 2022-06-04 02:42:33 +03:00
server.dev.yml add a new example 2022-06-04 02:42:33 +03:00
server.yml add a new example 2022-06-04 02:42:33 +03:00

Environment-based Configuration

Run production server

$ go run main.go --config=server.yml

Run development server

$ go run main.go --config=server.dev.yml