mirror of
https://github.com/astaxie/beego.git
synced 2025-04-12 15:20:17 +00:00
fix when in linux system not in the app dir
This commit is contained in:
parent
5cf52e2cb8
commit
ee9b8b6aa9
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user