0
工作,我有我的基本程序無法獲得的Hello World來在Heroku
def test():
print("Hello World")
test()
與Procfile一起。
web: python test.py
當我在命令行中使用一次性動態測試時,我得到了我期望的結果。但是,當我在Heroku儀表板中打開應用程序時,每次都會出現H10錯誤。是什麼賦予了?
編輯:日誌
2016-08-18T17:34:25.925592+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=hwt1.herokuapp.com request_id=a0cabc52-0f80-4094-a420-06147b8c860c fwd="199.133.80.68" dyno= connect= service= status=503 bytes=
2016-08-18T17:34:26.646976+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=hwt1.herokuapp.com request_id=27121a16-ad6b-489f-8ffc-1d3b5e21d225 fwd="199.133.80.68" dyno= connect= service= status=503 bytes=
https://devcenter.heroku.com/articles/error-codes#h10-app-crashed換句話說,去看看日誌,找出它爲什麼崩潰。 –
運行'heroku logs'命令查看錯誤輸出。在這裏粘貼你的錯誤=) – rdegges
我點擊了打開應用程序按鈕,得到這個'2016-08-18T17:34:25.925592 + 00:00 heroku [router]:at = error code = H10 desc =「App crashed」method = GET path =「/」host = hwt1.herokuapp.com request_id = a0cabc52-0f80-4094-a420-06147b8c860c fwd =「199.133.80.68」dyno = connect = service = status = 503 bytes = 2016-08-18T17:34: 26.646976 + 00:00 heroku [router]:at = error code = H10 desc =「App crashed」method = GET path =「/ favicon.ico」host = hwt1.herokuapp.com request_id = 27121a16-ad6b-489f-8ffc- 1d3b5e21d225 fwd =「199.133.80.68」dyno = connect = service = status = 503 bytes =' –