0

Herokuのpandastreamセットアップドキュメントをフォローしました。https://devcenter.heroku.com/articles/pandastreamから入手できます

しかし、使用heroku run consoleして実行するPanda::Profile.allと、

irb(main):001:0> Panda::Profile.all
NoMethodError: undefined method `connection' for nil:NilClass
    from /app/vendor/bundle/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/cloud_connection.rb:4:in `connection'
    from /app/vendor/bundle/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/finders.rb:19:in `find_object_by_path'
    from /app/vendor/bundle/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/finders.rb:23:in `find_by_path'
    from /app/vendor/bundle/ruby/1.9.1/gems/panda-1.5.0/lib/panda/modules/finders.rb:44:in `all'
    from (irb):1
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands/console.rb:47:in `start'
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands/console.rb:8:in `start'
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

ローカルでテストすると、意図した結果で正常に機能します。何か案は?

4

1 に答える 1

1

いくつかの健全性チェック

  1. config/initializers/panda.rb初期化子のガイドにあるようにファイルを作成しましたか?

  2. heroku addons:open pandastreamS3 バケットと認証情報を実行して確認します。資格情報が間違っているconnection errorと、スタック トレースに表示されているような結果になる可能性が高くなります。

  3. typhoeus&の最新バージョンに更新してみて、panda問題が解決するかどうかを確認してください

それが役に立てば幸い。これが役に立たない場合は、ポストバックすることを忘れないでください。

于 2012-06-11T18:56:37.130 に答える