我正在与 ssh 密钥搏斗并上传了一个新密钥,然后我 git push heroku master'ed 很好,然后它显示了我的登录页面,但显示
We're sorry, but something went wrong.
我在stackoverflow中发现可能是我还没有运行
heroku rake db:migrate
(没有标准文档说要这样做!)但是当我运行它时,我得到了这个:
User/<computername>/.heroku/client/lib/heroku/cli.rb:30:in `start': undefined method `error_with_failure'
for Heroku::Helpers:Module (NoMethodError)from /usr/bin/heroku:28
该文件的代码如下所示:
def self.start(*args)
begin
if $stdin.isatty
$stdin.sync = true
end
if $stdout.isatty
$stdout.sync = true
end
command = args.shift.strip rescue "help"
Heroku::Command.load
Heroku::Command.run(command, args)
rescue Interrupt
`stty icanon echo`
error("Command cancelled.")
rescue => error
if Heroku::Helpers.error_with_failure <<<<<<<<< Line #30 WHERE ERROR OCCURS
display("failed")
Heroku::Helpers.error_with_failure = false
end
$stderr.puts(' ! Heroku client internal error.')
$stderr.puts(" ! Search for help at: https://help.heroku.com")
$stderr.puts(" ! Or report a bug at: https://github.com/heroku/heroku/issues/new")
$stderr.puts
$stderr.puts(" Error: #{error.message} (#{error.class})")
$stderr.puts(" Backtrace: #{error.backtrace.first}")
error.backtrace[1..-1].each do |line|
$stderr.puts(" #{line}")
end