Heroku部署错误

时间:2012-02-28 19:17:05

标签: ruby-on-rails git heroku

发生了新问题

heroku create


/Users/ender/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:16:in `extract_account': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/ender/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:35:in `fetch_from_account'
    from /Users/ender/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:5:in `user'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.21.0/lib/heroku/plugin.rb:51:in `load!'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.21.0/lib/heroku/command.rb:17:in `load'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.21.0/lib/heroku/cli.rb:8:in `start'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/gems/heroku-2.21.0/bin/heroku:21:in `<top (required)>'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `load'
    from /Users/ender/.rvm/gems/ruby-1.9.2-p290/bin/heroku:19:in `<main>'

我也在终端上写了heroku,我看到同样的错误。为什么呢?

SOLUTION:

在重新安装之前,您需要手动删除插件:

$ rm -rf ~/.heroku/plugins/heroku-accounts 
$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git

1 个答案:

答案 0 :(得分:0)

看起来你已经安装了heroku-accounts插件。

要么卸载它,要么确保按照文档添加了帐户:https://github.com/ddollar/heroku-accounts