[問題] local端可以執行的code放到heroku後卻ꐠ…
環境:
Ruby 1.8.7 Rails 3.1.0
狀況:
我寫了一份rails code,用rails sever在本地端可以正常執行
可是push上heroku後卻出現:
We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.
logs訊息顯示如下:
2011-09-08T10:27:40+00:00 app[web.1]: Started GET "/" for 140.112.4.196 at
Thu Sep 08 03:27:40 -0700 2011
2011-09-08T10:27:40+00:00 app[web.1]:
2011-09-08T10:27:40+00:00 app[web.1]: ActiveRecord::ConnectionNotEstablished (A
ctiveRecord::ConnectionNotEstablished):
2011-09-08T10:27:40+00:00 app[web.1]:
2011-09-08T10:27:40+00:00 app[web.1]:
2011-09-08T10:27:40+00:00 app[web.1]:
2011-09-08T10:27:40+00:00 app[web.1]: cache: [GET /] miss
2011-09-08T10:27:40+00:00 heroku[router]: GET ptttranspost.heroku.com/ dyno=web
.1 queue=0 wait=0ms service=5ms status=500 bytes=728
2011-09-08T10:27:40+00:00 heroku[nginx]: 140.112.4.196 - - [08/Sep/2011:03:27:4
0 -0700] "GET / HTTP/1.1" 500 728 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220
Safari/535.1" ptttranspost.heroku.com
感覺問題出在標黃色的那行,但我不確定是不是也不知道該如何解決
第一次用rails,有請前輩指點了!
想順帶一問,有辦法把log上的時間改成台灣的時間嗎?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.196
※ 編輯: BM0108 來自: 140.112.4.196 (09/08 18:39)
推
09/08 19:54, , 1F
09/08 19:54, 1F
→
09/08 20:02, , 2F
09/08 20:02, 2F
→
09/08 20:06, , 3F
09/08 20:06, 3F
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章