fix: re-parse config in windows

This commit is contained in:
slene 2013-12-20 11:21:48 +08:00
parent 1c434dc6f4
commit 7aa307bd24
1 changed files with 2 additions and 1 deletions

View File

@ -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