문제

When using heroku console, I always get "Internal server error" when an exception is raised rather than a stacktrace as I would expect.

Here's a transcript of what I mean:

$ 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> 

Any ideas on what I can change to get the stack traces?

도움이 되었습니까?

해결책

This has been fixed in the latest version of the Heroku gem. Running heroku update should resolve this issue.

다른 팁

heroku console has been deprecated. You should use heroku run … instead. Depending on your rails version, one of the following should work:

$ heroku run script/console $ heroku run bundle exec rails console

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top