【发布时间】:2014-05-12 22:34:56
【问题描述】:
嘿,我正在尝试在 Heroku 上部署我的 rails 应用程序,但我每次都收到错误代码 10(应用程序崩溃)。当我运行“heroku run bundle exec rails console”命令时,我可以看到它正在寻找一个我很久以前删除并且不再依赖的控制器,为什么会这样,我该如何修复它?非常感谢!
这是错误,它会查找“items_controller”,即使我几周前删除了该文件并且我的应用程序在本地运行
unning `bundle exec rails console` attached to terminal... up, run.7812
/app/app/controllers/items_controller.rb:26: warning: else without rescue is useless
/app/vendor/bundle/ruby/2.0.0/gems/activesupport- 4.0.2/lib/active_support/dependencies.rb:229:in `require': /app/app/controllers/items_controller.rb:22: syntax error, unexpected ')', expecting keyword_then or ';' or '\n' (SyntaxError)
【问题讨论】:
-
发布错误日志,可能会有所帮助。
标签: ruby-on-rails heroku deployment ruby-on-rails-4