From 7aa307bd246499dcb9153b799f17089c673596a6 Mon Sep 17 00:00:00 2001 From: slene Date: Fri, 20 Dec 2013 11:21:48 +0800 Subject: [PATCH] fix: re-parse config in windows --- beego.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beego.go b/beego.go index ffd3ad0f..1b16a422 100644 --- a/beego.go +++ b/beego.go @@ -3,6 +3,7 @@ package beego import ( "net/http" "path" + "path/filepath" "strings" "github.com/astaxie/beego/middleware" @@ -68,7 +69,7 @@ func InsertFilter(pattern string, pos int, filter FilterFunc) *App { func Run() { // if AppConfigPath not In the conf/app.conf reParse config - if AppConfigPath != path.Join(AppPath, "conf", "app.conf") { + if AppConfigPath != filepath.Join(AppPath, "conf", "app.conf") { err := ParseConfig() if err != nil { // configuration is critical to app, panic here if parse failed