mirror of
https://github.com/astaxie/beego.git
synced 2024-11-16 14:10:56 +00:00
Merge pull request #2267 from centos-ren/develop
Fix :supervisor work dir
This commit is contained in:
commit
d548ddeb5b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user