mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:10:54 +00:00
Fix :supervisor work dir
This commit is contained in:
parent
3baac14095
commit
0a822209c8
@ -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