fix:修复beego使用file储存session时存在的路径BUG

This commit is contained in:
lifei6671
2018-11-09 18:10:34 +08:00
parent 64edcf97ce
commit 7785fb270d
4 changed files with 44 additions and 2 deletions

View File

@@ -44,12 +44,15 @@ func (d *Daemon) Start(s service.Service) error {
func (d *Daemon) Run() {
commands.ResolveCommand(d.config.Arguments)
commands.RegisterFunction()
commands.RegisterAutoLoadConfig()
commands.RegisterError()
beego.ErrorController(&controllers.ErrorController{})
f,err := filepath.Abs(os.Args[0])