2
내 config.ru
파일에 다음과 같은 오류가있는 Heroku가 작동하지 않습니다.Heroku에서 Resque를 실행하기 위해 config.ru를 구성하는 방법은 무엇입니까?
require ::File.expand_path('../config/environment', __FILE__)
run Picasa::Application
require 'resque/server'
run Rack::URLMap.new \
"/" => Picasa::Application,
"/resque" => Resque::Server.new
오류 : 당신은 레일 3.0.9를하는 경우에 당신이 할 필요가 당신의 routes.rb 파일에
mount Resque::Server.new, :at => "/resque"
되어 실행중인 같은
2011-10-17T13:54:01+00:00 heroku[web.1]: Starting process with command `thin -p 30071 -e production -R /home/heroku_rack/heroku.ru start`
2011-10-17T13:54:06+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:168:in `call': undefined method `reverse_merge!' for #<Rack::URLMap:0x7fd215e4f720> (NoMethodError)
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `send'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:73:in `to_app'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:23:in `inject'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:73:in `each'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:73:in `inject'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:73:in `to_app'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:63:in `map'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:18
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11:in `new'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:11
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
2011-10-17T13:54:06+00:00 app[web.1]: from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1:in `new'
2011-10-17T13:54:06+00:00 app[web.1]: from /home/heroku_rack/heroku.ru:1
2011-10-17T13:54:06+00:00 heroku[web.1]: Process exited
2011-10-17T13:54:08+00:00 heroku[web.1]: State changed from starting to crashed
안녕하세요. 그것을 내 라우트 파일에 추가하고'config.ru'에서 마지막 4 행을 삭제했으며 같은 오류가 있습니다. – Simpleton
로컬로 작동합니까? 이 문제는 Heroku에 배치하지 않고도 여전히 로컬에서 발생합니다. –
routes.rb 파일에 제안을하고 내 구성 파일에 Resque를 지정하지 않으면 서버가 로컬로 시작됩니다. – Simpleton