1
0
Fork 0

Configure Rollbar from flags

This commit is contained in:
Gregory Eremin 2014-07-12 17:39:00 +07:00
parent 6d0f45d0f4
commit 4c29b300f6
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ type (
Storage string
Env string
Port int
Rollbar string
}
)
@ -21,6 +22,7 @@ func SetupConfig() {
cfg.Storage = *flag.String("storage", "-", "Kyoto Cabinet storage path (e.g. storage.kch#zcomp=gz#capsiz=524288000)")
cfg.Env = *flag.String("environment", "development", "Process environment: development or production")
cfg.Port = *flag.Int("port", 4401, "HTTP port to listen")
cfg.Rollbar = *flag.String("rollbar", "", "Rollbar token")
flag.Parse()
}