在我的本地開發環境中成功測試了我的「alpha」Rails 3應用程序後,我將其推到Heroku(Cedar)進行實時測試。推是成功的,但應用程序在啓動時崩潰,並顯示以下錯誤:
: => Booting WEBrick
: => Ctrl-C to shutdown server
: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': /app/app/controllers/dives_controller.rb:50: invalid multibyte char (US-ASCII) (SyntaxError)
: /app/app/controllers/dives_controller.rb:50: syntax error, unexpected $end
: Exiting
我已經檢查了意外的字符缺少結束語句,但似乎無法找到任何。我沒有使用任何多語言字符(據我所知)。
下面是我的一些文件,包括:Gemfile中,Gemfile.lock的,database.yml中,dives_controller.rb https://gist.github.com/2632041
難道這可能有些事情要使用Postgres的,而不是在我的數據庫specifiying它。 yml正確嗎?
你使用的是數據庫嗎?如果是這樣,你需要在heroku上使用postgres。 – Dty
您確定您在要點中上傳的DivesController版本與您上傳至Heroku的版本相同嗎? –