Configure Rollbar from flags
This commit is contained in:
parent
6d0f45d0f4
commit
4c29b300f6
|
@ -10,6 +10,7 @@ type (
|
||||||
Storage string
|
Storage string
|
||||||
Env string
|
Env string
|
||||||
Port int
|
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.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.Env = *flag.String("environment", "development", "Process environment: development or production")
|
||||||
cfg.Port = *flag.Int("port", 4401, "HTTP port to listen")
|
cfg.Port = *flag.Int("port", 4401, "HTTP port to listen")
|
||||||
|
cfg.Rollbar = *flag.String("rollbar", "", "Rollbar token")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue