2012-02-28 188 views
2

有一個新的問題出現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 

回答

0

看起來你有Heroku的賬戶插件安裝。

要麼卸載它,要麼確保您已經按照文檔添加了您的帳戶:https://github.com/ddollar/heroku-accounts

+0

沒有。這裏的問題在「heroku」命令中。任何heroku命令都不起作用。我剛剛寫了heroku,並且像以前一樣看到了山姆問題。 – ndrx42 2012-02-28 21:17:50

+0

好吧然後問題由heroku支持者解決。 您需要在重新安裝之前手動刪除插件: $ rm -rf〜/ .heroku/plugins/heroku-accounts $ heroku插件:安裝git://github.com/ddollar/ Heroku的-accounts.git – ndrx42 2012-02-29 00:38:11