This commit is contained in:
astaxie 2015-06-14 18:10:10 +08:00
parent 9f05db8475
commit 64d4f6518b
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ func initBeforeHttpRun() {
// this function is for test package init
func TestBeegoInit(apppath string) {
AppPath = apppath
RunMode = "test"
os.Setenv("BEEGO_RUNMODE", "test")
AppConfigPath = filepath.Join(AppPath, "conf", "app.conf")
err := ParseConfig()
if err != nil && !os.IsNotExist(err) {