Heroku运行命令不起作用

时间:2012-07-25 22:11:00

标签: ruby-on-rails-3 heroku

当我使用“heroku run ...”执行任何操作时,我收到以下错误:

/Users/tony/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb:48:in `<class:GemNotFoundException>': undefined method `errors' for nil:NilClass (NoMethodError)
from /Users/tony/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb:40:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/tony/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1235:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /Users/tony/.rvm/gems/ruby-1.9.2-p290/bin/heroku:9:in `<main>'

之前工作正常。

任何帮助?

1 个答案:

答案 0 :(得分:0)

我重新安装了下载.zip并执行ruby setup.rb的rubygems,一切都已修复。