mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 09:30:56 +00:00
Remove a regression on AppPath
The application path is incorrect on Windows with the command line "go run". AppPath is assigned to the temp directory instead the folder project
This commit is contained in:
parent
eba6afd6fb
commit
e90f4bee1a
@ -144,9 +144,6 @@ func init() {
|
|||||||
if err = parseConfig(appConfigPath); err != nil {
|
if err = parseConfig(appConfigPath); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
if err = os.Chdir(AppPath); err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func recoverPanic(ctx *context.Context) {
|
func recoverPanic(ctx *context.Context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user