Configure Rollbar from flags
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user