2012-03-09 99 views
0

整日我在爲Heroku部署我的應用程序而苦苦掙扎。仍然到達那裏的錯誤500,具體來說這是從日誌輸出:Rails 3.2,Heroku - 無法顯示我的頁面 - 錯誤500

2012-03-09T16:56:25+00:00 app[web.1]: [DEPRECATION] Paperclip::Attachment.interpolations is deprecated and will be removed from future versions. Use Paperclip.interpolates instead 
2012-03-09T16:56:28+00:00 app[web.1]: >> Thin web server (v1.3.1 codename Triple Espresso) 
2012-03-09T16:56:28+00:00 app[web.1]: >> Maximum connections set to 1024 
2012-03-09T16:56:28+00:00 app[web.1]: >> Listening on 0.0.0.0:21464, CTRL+C to stop 
2012-03-09T16:56:29+00:00 heroku[web.1]: State changed from starting to up 
2012-03-09T16:56:31+00:00 app[web.1]: 
2012-03-09T16:56:31+00:00 app[web.1]: 
2012-03-09T16:56:31+00:00 app[web.1]: Started GET "/" for _my_ip_ at 2012-03-09 16:56:31 +0000 
2012-03-09T16:56:32+00:00 app[web.1]: cache: [GET /] miss 
2012-03-09T16:56:32+00:00 heroku[router]: GET url_app.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=870ms status=304 bytes=0 
2012-03-09T16:56:33+00:00 heroku[router]: GET url_app.herokuapp.com/favicon.ico dyno=web.1 queue=0 wait=0ms service=4ms status=200 bytes=0 
2012-03-09T16:56:33+00:00 app[web.1]: cache: [GET /favicon.ico] miss 

有什麼問題嗎?日誌沒有說明什麼,我不知道在哪裏搜索問題......本地很好地爲我的應用程序。

回答

1

你能澄清,如果:

  1. 是什麼導致了這些日誌的步驟:你有沒有嘗試訪問它在瀏覽器中,或使用「Heroku的開放」,從CLI?
  2. 應用程序之前是否已成功運行,現在已停止工作,或者是第一次部署到heroku?
  3. 您的日誌中的「url_app」是由您進行編輯還是逐字記錄的?

這裏有一些建議,你可以嘗試:

  1. 如果「url_app」是從日誌中逐字,似乎有一個重定向問題與應用程序的配置。嘗試運行從CLI「的Heroku開放」來獲得對CLI正確網址
  2. 運行「Heroku的狀態」,以檢查它是否是一個Heroku的問題

如果你能提供上述資料,我會能夠更好地幫助。