comments
This commit is contained in:
parent
797229a7da
commit
05e041cccf
5
main.go
5
main.go
@ -10,10 +10,13 @@ import (
|
|||||||
const appname = "oc-catalog"
|
const appname = "oc-catalog"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// Init the oc-lib
|
||||||
oclib.Init(appname)
|
oclib.Init(appname)
|
||||||
|
|
||||||
|
// Load the right config file
|
||||||
o := oclib.GetConfLoader()
|
o := oclib.GetConfLoader()
|
||||||
|
|
||||||
|
// feed the library with the loaded config,
|
||||||
oclib.SetConfig(
|
oclib.SetConfig(
|
||||||
o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"),
|
o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"),
|
||||||
o.GetStringDefault("MONGO_DATABASE", "DC_myDC"),
|
o.GetStringDefault("MONGO_DATABASE", "DC_myDC"),
|
||||||
|
Loading…
Reference in New Issue
Block a user