mirror of
https://github.com/astaxie/beego.git
synced 2025-09-16 10:02:10 +00:00
beego: run mode support test
This commit is contained in:
1
beego.go
1
beego.go
@@ -384,6 +384,7 @@ func initBeforeHttpRun() {
|
||||
// this function is for test package init
|
||||
func TestBeegoInit(apppath string) {
|
||||
AppPath = apppath
|
||||
RunMode = "test"
|
||||
AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
|
||||
err := ParseConfig()
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
|
Reference in New Issue
Block a user