我一直在嘗試重新部署我在Heroku上托管的應(yīng)用程序 .
在每次重新部署時,我都會收到“您的應(yīng)用已成功部署” .
但在打開頁面時我得到了:
An error occurred in the application and your page could not be served.
Please try again in a few moments.
If you are the application owner, check your logs for details.
打開“活動”標簽下的日志給了我日志,但它沒有出現(xiàn)什么問題 .
如何才能知道導致應(yīng)用程序錯誤的原因 .
我們可以從heroku shell輕松獲取Heroku的日志 . 要在您的計算機上獲取“heroku shell”,請安裝heroku toolbelt .
一個安裝,從'cmd'登錄到heroku:
heroku login
然后你可以得到日志:
heroku logs --app APPNAME
無論您使用git,github還是dropbox,這都有效 .