1
您能不能在Google AppEngine上帮助我,因为我看不到http://localhost:8080的任何响应,虽然我可以在下面看到运行... 另请注意,我也无法使用Ctrl + C关闭。我目前在Mac OSX 10.10.5上运行这个。运行Google AppEngine HelloWorld应用程序
hello.go
package hello
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/", handler)
}
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world!")
}
的app.yaml
application: helloworld
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
端子输出
INFO 2015-09-10 15:25:33,421 devappserver2.py:763] Skipping SDK update check.
WARNING 2015-09-10 15:25:33,480 simple_search_stub.py:1126] Could not read search indexes from /var/folders/dw/j8wnb7bn3bb0x_lh0v_gb1nw0000gn/T/appengine.helloworld.someuser/search_indexes
INFO 2015-09-10 15:25:33,483 api_server.py:205] Starting API server at: http://localhost:50462
INFO 2015-09-10 15:25:33,487 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO 2015-09-10 15:25:33,489 admin_server.py:118] Starting admin server at: http://localhost:8000
感谢您的咨询。我的尝试与你所建议的完全一样,没有像以前那样改变行为。有什么办法可以看到日志吗? – digidhamu
@digidhamu,确定你可以看到日志 - 如果你使用Mac OS X的GUI Runner,只需点击相应的图标;否则,你配音“终端输出”正是“日志”。顺便说一句,你说“没有改变行为”,但你从来没有显示卷曲的输出(理想情况下标志需要详细的细节当然)。 –
我看不到“$ curl http:// localhost:8080”输出。你能帮忙吗? – digidhamu