這個應用程序在我的本地計算機上工作得很好。推送到Heroku後,靜態頁面似乎正在工作,但博客部分引發內部服務器錯誤。我通過運行「Heroku的日誌」拉日誌,這就是我得到:Heroku的應用程序拋出「內部服務器錯誤」
==> production.log <==
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in `start'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/server.rb:156:in `start'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/controllers/controller.rb:80:in `start'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/runner.rb:177:in `send'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/runner.rb:177:in `run_command'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/lib/thin/runner.rb:143:in `run!'
/home/slugs/215194_e5b887e_c999/mnt/.bundle/gems/gems/thin-1.2.7/bin/thin:6
有毛病EventMachine的寶石,我想....但它工作正常在我的機器上。所以我不確定發生了什麼或者如何調試它。
拋出異常了嗎? (看起來像是一個帶有異常消息的堆棧跟蹤) – mipadi 2010-06-18 14:22:52
難道是這樣: SQLite3 :: CantOpenException - 無法打開數據庫文件: /disk1/home/slugs/215194_38708ba_c999/mnt/.bundle/gems/gems /activerecord-2.3.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:13:in'initialize' – picardo 2010-06-18 14:31:15
這是指向幾乎完整的錯誤日誌的鏈接:http://gist.github.com/443709 – picardo 2010-06-18 14:34:54