mirror of
https://github.com/beego/bee.git
synced 2024-11-21 18:40:54 +00:00
Merge branch 'master' of github.com:astaxie/bee
This commit is contained in:
commit
1991a21b03
6
run.go
6
run.go
@ -67,6 +67,7 @@ var conf struct {
|
||||
}
|
||||
|
||||
func runApp(cmd *Command, args []string) {
|
||||
exit := make(chan bool)
|
||||
if len(args) != 1 {
|
||||
fmt.Println("[ERRO] Argument [appname] is missing")
|
||||
os.Exit(2)
|
||||
@ -92,7 +93,10 @@ func runApp(cmd *Command, args []string) {
|
||||
appname = args[0]
|
||||
Autobuild()
|
||||
for {
|
||||
runtime.Gosched()
|
||||
select {
|
||||
case <-exit:
|
||||
runtime.Goexit()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user