当使用heroku console
时,我会在发生异常而不是堆栈跟踪时出现“内部服务器错误”,正如我所期望的那样。为什么Padroino的“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>
什么我可以改变,以获得堆栈跟踪任何想法?
那是一个很好的问题,我倾向于使用“Heroku的运行捆绑高管。 ..“的方法,当我在雪松堆栈上运行我的Padrino应用程序时。我会在这里查看,但如果你想出来,也许我们可以将其添加到Padrino指南之一中...... – Nathan
“heroku run”解决方案似乎也适用于Bamboo堆栈。似乎应该有一个设置,无论“heroku控制台”是什么,我们可以改变......当我们得到它时,解决方案将不得不在导游中进行。 :) –