2011-12-15 2 views
0

나는 내 rails 앱에서 gem rapns (https://github.com/ileitch/rapns)를 사용하고 있습니다.푸시 알림을 위해 heroku에 rapns 사용하기

는 rapns의 문서에 따르면, 나는

bundle exec rapns

새로운 알림을 보낼에 대한 데이터베이스를 검사하는 데몬 프로세스를 시작 걷어차 실행해야합니다.

그래서 나는 다음 않았다 : 나는 아주 아주 레일에 새로운 루비 해요

Running bundle exec rapns production --foreground attached to terminal... up, run.3 
[WARNING] Detected Rails 3.1.1, patching PostgreSQLAdapter to fix reconnection bug: https://github.com/rails/rails/issues/3160 
/app/.bundle/gems/ruby/1.9.1/gems/rapns-1.0.1/lib/rapns/daemon.rb:95:in initialize': No such file or directory - /app/tmp/pids/rapns.pid (Errno::ENOENT) 
from /app/.bundle/gems/ruby/1.9.1/gems/rapns-1.0.1/lib/rapns/daemon.rb:95:inopen' 
from /app/.bundle/gems/ruby/1.9.1/gems/rapns-1.0.1/lib/rapns/daemon.rb:95:in write_pid_file' 
from /app/.bundle/gems/ruby/1.9.1/gems/rapns-1.0.1/lib/rapns/daemon.rb:43:instart' 
from /app/.bundle/gems/ruby/1.9.1/gems/rapns-1.0.1/bin/rapns:28:in <top (required)>' 
from /app/.bundle/gems/ruby/1.9.1/bin/rapns:19:inload' 
from /app/.bundle/gems/ruby/1.9.1/bin/rapns:19:in `' 

, 누군가가 잘못 무슨 일이 일어나고 있는지 말해 줄 수 :

heroku run bundle exec rapns production --foreground

나에게 오류를 준?

답변

1

프로덕션 구성에서 pid_file 옵션을 제거하거나 쓰기 불가능한 pid_file 옵션을 허용하는 1.0.2로 업그레이드해야합니다.

관련 문제