2011-12-13 4 views
1

다른 환경에서는 정상적으로 작동하는 라우팅 오류가 발생합니다. 내가 Heroku에 보낼 때 OmniAuth 물건이 작동하지 않습니다.RoutingError for Heroku on Heoku

레일 3.1.3 루비 1.9.2-p290 OmniAuth 0.2.6

Started GET "/auth/?provider=google&return_site_id=2&return_session_id=54fb72dc1e6d29308fc6b6ec2b721889" for 76.x.x.x at 2011-12-12 20:17:33 -0800 
cache: [GET /auth/?provider=google&return_site_id=2&return_session_id=54fb72dc1e6d29308fc6b6ec2b721889] miss 
2011-12-13T04:17:33+00:00 heroku[router]: GET mysite.org/auth/ dyno=web.1 queue=0 wait=0ms service=2ms status=302 bytes=104 

Started GET "/auth/google" for 76.x.x.x at 2011-12-12 20:17:33 -0800 

ActionController::RoutingError (No route matches [GET] "/auth/google"): 

cache: [GET /auth/google] miss 
+1

routes.rb 파일의 내용은 무엇입니까? – James

답변

1

나는이 같은 문제로 실행 (그러나 OmniAuth 1.0을 사용하고 있습니다). 이 문제는 heroku에서 캐시 저장소가 설정되지 않아 발생합니다.

수정하려면 Memcache를 추가하십시오. heroku docs on adding Memcache을 따르고 config.cache_store = :dalli_storeconfig/environments/production.rb에 추가하여 문제를 해결하십시오.