inject mongodb uri inside the binary and os
This commit is contained in:
@@ -22,6 +22,10 @@ func init() {
|
||||
|
||||
models.BaseConfig = models.BaseConfig.LoadFromEnv()
|
||||
|
||||
if DB_URI != "" {
|
||||
models.BaseConfig = models.BaseConfig.WithDbUri(DB_URI)
|
||||
}
|
||||
|
||||
task.RegisterInterface("tui", tui.New())
|
||||
task.RegisterInterface("web", web.New())
|
||||
task.RegisterInterface("repl", repl.New())
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
var App *app.App
|
||||
var appCleanup func()
|
||||
var RootCmd = issues.RootCmd
|
||||
var DB_URI string
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in New Issue
Block a user