Browse Source

Merge pull request #427 from astaxie/patch-1

Update hello.go
Brian Hauer 12 years ago
parent
commit
45b104867d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      beego/src/hello/hello.go

+ 3 - 1
beego/src/hello/hello.go

@@ -20,7 +20,9 @@ func (this *JsonController) Get() {
 }
 
 func main() {
-	runtime.GOMAXPROCS(runtime.NumCPU())
+	//don't need this set, beego default set it
+	//runtime.GOMAXPROCS(runtime.NumCPU())
+	beego.RunMode = "prod"
 	beego.Router("/json", &JsonController{})
 	beego.Run()
 }