1

Rapns をステージング環境で動作させるのに問題があります。ローカルホストで開発を実行している場合はすべて正常に動作しますが、ステージング (AWS を使用) の場合は、デーモンを起動したり呼び出したりすることができませんRapns.push

呼び出しbundle exec rapns stagingてもエラーは発生しませんが、通知は配信されません。

Rails コンソールを使用するとき、 またはRails コンソールからbundle exec rapns staging -f呼び出そうとすると、次のようになります。Rapns.push

[2013-05-29 06:54:20] [ios] Started, 1 handler.
[2013-05-29 06:54:20] [ERROR] [ios] Exception raised during startup. Notifications will     not be delivered for this app.
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/logger.rb:365:in `<': comparison of     Fixnum with Array failed (ArgumentError)
    from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/logger.rb:365:in `add'
    from .../shared/bundle/ruby/1.9.1/gems/activesupport-3.2.7/lib/active_support/buffered_logger.rb:80:in `add'
    from .../shared/bundle/ruby/1.9.1/gems/activesupport-3.2.7/lib/active_support/buffered_logger.rb:90:in `error'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/logger.rb:53:in `log'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/logger.rb:28:in `error'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon/app_runner.rb:34:in `rescue in sync_app'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon/app_runner.rb:30:in `sync_app'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon/app_runner.rb:20:in `block in sync'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon/app_runner.rb:20:in `each'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon/app_runner.rb:20:in `sync'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/lib/rapns/daemon.rb:47:in `start'
    from .../shared/bundle/ruby/1.9.1/gems/rapns-3.3.0/bin/rapns:36:in `<top (required)>'
    from .../shared/bundle/ruby/1.9.1/bin/rapns:23:in `load'
    from .../shared/bundle/ruby/1.9.1/bin/rapns:23:in `<main>'

繰り返しますが、すべてがローカル マシンで正常に動作します。何か案は?よろしくお願いします!

4

1 に答える 1