new oclib + comments
This commit is contained in:
1
main.go
1
main.go
@@ -29,6 +29,7 @@ func main() {
|
||||
o.GetStringDefault("MONGO_DATABASE", "DC_myDC"),
|
||||
"",
|
||||
)
|
||||
// Init the OC library, hostname & port are used for discovery purpose, it's the hostname and port of the service
|
||||
oclib.Init("oc-datacenter", o.GetStringDefault("HOSTNAME", "localhost"), o.GetStringDefault("PORT", "8092"))
|
||||
// Normal beego init
|
||||
//if beego.BConfig.RunMode == "dev" {
|
||||
|
||||
Reference in New Issue
Block a user