Update readme and testconfig

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

View File

@ -26,11 +26,12 @@ Todo till we can fork this repo
## 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 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

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
}