1

使用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> 

关于我可以更改以获取堆栈跟踪的任何想法?

4

2 回答 2

1

这已在最新版本的 Heroku gem 中得到修复。运行heroku update应该可以解决这个问题。

于 2011-10-09T00:19:04.623 回答
0
于 2012-11-29T08:02:16.357 回答