From 0a822209c8c1f356716ddf8072d5aa8e0f1ab377 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 8 Nov 2016 11:14:48 +0800 Subject: [PATCH] Fix :supervisor work dir --- config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.go b/config.go index 52e647db..36bf445c 100644 --- a/config.go +++ b/config.go @@ -144,6 +144,9 @@ func init() { if err = parseConfig(appConfigPath); err != nil { panic(err) } + if err = os.Chdir(AppPath); err != nil { + panic(err) + } } func recoverPanic(ctx *context.Context) {