2011-09-07 3 views
1

heroku console을 사용할 때 예상대로 스택 트레이스가 아닌 예외가 발생할 때 항상 "내부 서버 오류"가 발생합니다.Padrino의 "heroku console"이 쓸모없는 오류 메시지를 표시하는 이유는 무엇입니까?

여기에 무슨 뜻인지의 성적이다 :

$ heroku console 
Ruby console for myapp.heroku.com 
>> var_that_does_not_exist 
! Internal server error 
>> 
$ heroku run bundle exec padrino console -e production 
Running bundle exec padrino console -e production attached to terminal... up, run.9 
=> Loading production console (Padrino v.0.10.1) 
=> Loading Application MyApp 
=> Loading Application Admin 
irb(main):001:0> var_that_does_not_exist 
NameError: undefined local variable or method `var_that_does_not_exist' for main:Object 
     from (irb):1 
irb(main):002:0> 

내가 스택 추적을 얻을 변경할 수 있습니다 무엇에 어떤 아이디어?

+0

좋은 질문 그게 전부, 나는이 "Heroku가이 번들 간부를 실행 사용하는 경향이있다. .. "시더 스택에서 Padrino 앱을 실행할 때 접근합니다. 여기서 다시 확인해 보겠지 만 Padrino 가이드 중 하나에 추가 할 수 있습니다. – Nathan

+0

"heroku run"솔루션은 Bamboo 스택에서도 잘 작동하는 것 같습니다. "heroku 콘솔"이 우리가 바꿀 수있는 것이 무엇이든간에 설정이 있어야만하는 것처럼 보입니다 ... 우리가 얻을 때 솔루션은 가이드에 있어야합니다. :) –

답변

1

이 패치는 Heroku 보석의 최신 버전에서 수정되었습니다. heroku update을 실행하면이 문제가 해결됩니다.

0

heroku console은 (는) 더 이상 사용되지 않습니다. 대신 heroku run …을 사용해야합니다. 당신의 레일 버전에 따라 다음 중 하나가 작동합니다 :

$의 Heroku가 실행 스크립트/콘솔 $ Heroku가 실행 번들 간부 레일 콘솔

+1

또는 Padrino (우리가 문제의 앱에 사용하고있는 것) :'heroku run padrino console'. 그것은 확실히 지금가는 길입니다.하지만 당시 Heroku 버그였습니다 (수락 된 답변 참조). –