Update readme and testconfig
This commit is contained in:
parent
e8452e0d77
commit
149eaeb7f8
@ -26,11 +26,12 @@ Todo till we can fork this repo
|
|||||||
|
|
||||||
## Notes:
|
## Notes:
|
||||||
|
|
||||||
- Fixes have been placed into the beego orm for setting the timezone when using NewOrmWithDB()
|
- Fixes have been placed into the beego orm for setting the timezone when using NewOrmWithDB() (Already merged)
|
||||||
|
- Bee needs the dir patch (merge pending)
|
||||||
|
|
||||||
## Script
|
## Script
|
||||||
|
|
||||||
- script that runs all migrations (and passes through rollback or others, show states for company, run for single company) (list, connect, migrate)
|
- ~~script that runs all migrations (and passes through rollback or others, show states for company, run for single company) (list, connect, migrate)~~
|
||||||
|
|
||||||
## dependencies
|
## dependencies
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@ package test
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
_ "multitenantStack/routers"
|
_ "multitenantStack/routers"
|
||||||
auth "multitenantStack/services/authentication"
|
"multitenantStack/services/companydb"
|
||||||
|
"multitenantStack/services/tokenTools"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/astaxie/beego/orm"
|
"github.com/astaxie/beego/orm"
|
||||||
@ -10,10 +12,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
orm.RegisterDataBase("default", "postgres", "host=127.0.0.1 port=5435 user=postgres password=postgre sslmode=disable")
|
tokenTools.InitTokenToolsService()
|
||||||
auth.InitAuthService()
|
companydb.InitCompanyDBService()
|
||||||
|
orm.DefaultTimeLoc = time.UTC
|
||||||
|
|
||||||
orm.Debug = true
|
|
||||||
beego.BConfig.WebConfig.DirectoryIndex = true
|
beego.BConfig.WebConfig.DirectoryIndex = true
|
||||||
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
|
||||||
|
orm.Debug = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user