我正试图在Heroku Cedar堆栈上进行bash,我得到以下内容:
$ heroku run bash
Running `bash` attached to terminal... up, run.1
/usr/local/heroku/lib/heroku/client/rendezvous.rb:87:in `fixup': undefined method `force_encoding' for "\e[01;34m~\e[00m \e[01;32m$ \e[00m":String (NoMethodError)
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:63:in `start'
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:46:in `loop'
from /usr/local/heroku/lib/heroku/client/rendezvous.rb:46:in `start'
from /usr/local/heroku/lib/heroku/command/run.rb:118:in `rendezvous_session'
from /usr/local/heroku/lib/heroku/command/run.rb:104:in `run_attached'
from /usr/local/heroku/lib/heroku/command/run.rb:21:in `index'
from /usr/local/heroku/lib/heroku/command.rb:167:in `send'
from /usr/local/heroku/lib/heroku/command.rb:167:in `run'
from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:28
有关导致此错误的原因或如何解决此问题的任何想法? 提前谢谢!
答案 0 :(得分:1)
heroku命令行版本是什么?尝试升级它,无论是工具包还是rubygem。