mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 07:21:31 +00:00
fix #1213
This commit is contained in:
parent
9f05db8475
commit
64d4f6518b
2
beego.go
2
beego.go
@ -336,7 +336,7 @@ func initBeforeHttpRun() {
|
|||||||
// this function is for test package init
|
// this function is for test package init
|
||||||
func TestBeegoInit(apppath string) {
|
func TestBeegoInit(apppath string) {
|
||||||
AppPath = apppath
|
AppPath = apppath
|
||||||
RunMode = "test"
|
os.Setenv("BEEGO_RUNMODE", "test")
|
||||||
AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
|
AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
|
||||||
err := ParseConfig()
|
err := ParseConfig()
|
||||||
if err != nil && !os.IsNotExist(err) {
|
if err != nil && !os.IsNotExist(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user