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:
10
beego.go
10
beego.go
@ -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,
|
||||
|
Reference in New Issue
Block a user