1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-19 19:10:40 +00:00

Merge pull request from centos-ren/develop

Fix :supervisor work dir
This commit is contained in:
astaxie
2016-12-05 22:57:38 +08:00
committed by GitHub

@ -144,6 +144,9 @@ func init() {
if err = parseConfig(appConfigPath); err != nil { if err = parseConfig(appConfigPath); err != nil {
panic(err) panic(err)
} }
if err = os.Chdir(AppPath); err != nil {
panic(err)
}
} }
func recoverPanic(ctx *context.Context) { func recoverPanic(ctx *context.Context) {