mirror of
https://github.com/beego/bee.git
synced 2024-11-26 01:11:30 +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
|
Version int
|
||||||
// gopm support
|
// gopm support
|
||||||
Gopm struct {
|
Gopm struct {
|
||||||
Enable bool
|
Enable bool
|
||||||
|
Install bool
|
||||||
}
|
}
|
||||||
// Indicates whether execute "go install" before "go build".
|
// Indicates whether execute "go install" before "go build".
|
||||||
GoInstall bool `json:"go_install"`
|
GoInstall bool `json:"go_install"`
|
||||||
|
5
watch.go
5
watch.go
@ -125,7 +125,7 @@ func Autobuild() {
|
|||||||
var err error
|
var err error
|
||||||
// For applications use full import path like "github.com/.../.."
|
// For applications use full import path like "github.com/.../.."
|
||||||
// are able to use "go install" to reduce build time.
|
// 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 := exec.Command(cmdName, "install")
|
||||||
icmd.Stdout = os.Stdout
|
icmd.Stdout = os.Stdout
|
||||||
icmd.Stderr = os.Stderr
|
icmd.Stderr = os.Stderr
|
||||||
@ -152,9 +152,6 @@ func Autobuild() {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ColorLog("[ERRO] ============== Build failed ===================\n")
|
ColorLog("[ERRO] ============== Build failed ===================\n")
|
||||||
fmt.Print("Press 'enter' to rebuild...")
|
|
||||||
fmt.Scanln()
|
|
||||||
go Autobuild()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ColorLog("[SUCC] Build was successful\n")
|
ColorLog("[SUCC] Build was successful\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user