mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Bug fixed
This commit is contained in:
parent
3114e61537
commit
49c53400ea
3
conf.go
3
conf.go
@ -40,7 +40,8 @@ var conf struct {
|
||||
Version int
|
||||
// gopm support
|
||||
Gopm struct {
|
||||
Enable bool
|
||||
Enable bool
|
||||
Install bool
|
||||
}
|
||||
// Indicates whether execute "go install" before "go build".
|
||||
GoInstall bool `json:"go_install"`
|
||||
|
5
watch.go
5
watch.go
@ -125,7 +125,7 @@ func Autobuild() {
|
||||
var err error
|
||||
// For applications use full import path like "github.com/.../.."
|
||||
// are able to use "go install" to reduce build time.
|
||||
if conf.GoInstall {
|
||||
if conf.GoInstall || conf.Gopm.Install {
|
||||
icmd := exec.Command(cmdName, "install")
|
||||
icmd.Stdout = os.Stdout
|
||||
icmd.Stderr = os.Stderr
|
||||
@ -152,9 +152,6 @@ func Autobuild() {
|
||||
|
||||
if err != nil {
|
||||
ColorLog("[ERRO] ============== Build failed ===================\n")
|
||||
fmt.Print("Press 'enter' to rebuild...")
|
||||
fmt.Scanln()
|
||||
go Autobuild()
|
||||
return
|
||||
}
|
||||
ColorLog("[SUCC] Build was successful\n")
|
||||
|
Loading…
Reference in New Issue
Block a user