mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +00:00
Bug fixed
This commit is contained in:
parent
3114e61537
commit
49c53400ea
1
conf.go
1
conf.go
@ -41,6 +41,7 @@ var conf struct {
|
||||
// gopm support
|
||||
Gopm struct {
|
||||
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