1
0
mirror of https://github.com/beego/bee.git synced 2025-07-11 13:11:02 +00:00

Added ability to run an application either from the appname

directory or anywhere in the $GOPATH/src folder. (Fixes #219)
This commit is contained in:
Faissal Elamraoui
2016-07-22 17:33:05 +02:00
parent b022ab3277
commit 4be4a20df4
2 changed files with 36 additions and 24 deletions

View File

@ -121,8 +121,8 @@ func Autobuild(files []string, isgenerate bool) {
defer state.Unlock()
ColorLog("[INFO] Start building...\n")
path, _ := os.Getwd()
os.Chdir(path)
os.Chdir(currpath)
cmdName := "go"
if conf.Gopm.Enable {