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