Update readme and testconfig

This commit is contained in:
2018-11-14 18:49:49 +01:00
parent e8452e0d77
commit 149eaeb7f8
2 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,9 @@ package test
import (
_ "multitenantStack/routers"
auth "multitenantStack/services/authentication"
"multitenantStack/services/companydb"
"multitenantStack/services/tokenTools"
"time"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
@ -10,10 +12,11 @@ import (
)
func init() {
orm.RegisterDataBase("default", "postgres", "host=127.0.0.1 port=5435 user=postgres password=postgre sslmode=disable")
auth.InitAuthService()
tokenTools.InitTokenToolsService()
companydb.InitCompanyDBService()
orm.DefaultTimeLoc = time.UTC
orm.Debug = true
beego.BConfig.WebConfig.DirectoryIndex = true
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
orm.Debug = true
}