mirror of
https://github.com/astaxie/beego.git
synced 2025-06-19 10:40:40 +00:00
fix when in linux system not in the app dir
This commit is contained in:
1
beego.go
1
beego.go
@ -42,6 +42,7 @@ var (
|
||||
)
|
||||
|
||||
func init() {
|
||||
os.Chdir(path.Dir(os.Args[0]))
|
||||
BeeApp = NewApp()
|
||||
AppPath, _ = os.Getwd()
|
||||
StaticDir = make(map[string]string)
|
||||
|
Reference in New Issue
Block a user