Commit 7aa307bd authored by slene's avatar slene

fix: re-parse config in windows

parent 1c434dc6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment