1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-04 10:10:20 +00:00

reverse from pull 330

This commit is contained in:
astaxie
2013-12-04 17:03:49 +08:00
parent 3c91360d72
commit fb6312a303
2 changed files with 13 additions and 18 deletions

View File

@ -67,7 +67,15 @@ func InsertFilter(pattern string, pos int, filter FilterFunc) *App {
}
func Run() {
InitConfig()
//if AppConfigPath not In the conf/app.conf reParse config
if AppConfigPath != path.Join(AppPath, "conf", "app.conf") {
err := ParseConfig()
if err != nil {
if RunMode == "dev" {
Warn(err)
}
}
}
if SessionOn {
GlobalSessions, _ = session.NewManager(SessionProvider,