Ruby on rails Can';t heroku通过我的应用程序运行rake db迁移

Ruby on rails Can';t heroku通过我的应用程序运行rake db迁移,ruby-on-rails,heroku,Ruby On Rails,Heroku,这是我第一次遇到此类错误: 尝试在“后台”运行它 您也可以尝试,因为这似乎是一个连接问题 heroku run rails console telnet rendezvous.runtime.heroku.com 5000 如果它不工作,你可能有防火墙阻止你与heroku的连接 尝试运行heroku日志edit:我包括了上面的日志。奇怪。。。看起来只是挂断了。尝试使用trace?运行迁移,并尝试运行heroku restart,然后迁移再次感谢您。我不会复制粘贴您的解决方案,但请让我知道发生了

这是我第一次遇到此类错误:

尝试在“后台”运行它

您也可以尝试,因为这似乎是一个连接问题

heroku run rails console
telnet rendezvous.runtime.heroku.com 5000

如果它不工作,你可能有防火墙阻止你与heroku的连接

尝试运行heroku日志edit:我包括了上面的日志。奇怪。。。看起来只是挂断了。尝试使用trace?运行迁移,并尝试运行
heroku restart
,然后迁移再次感谢您。我不会复制粘贴您的解决方案,但请让我知道发生了什么事因为我也想从中学习。谢谢。是
run:distached
的解释。根据网络的不同,您可能会遇到pc和heroku之间的连接问题。我真的不知道原因,但这些程序将恢复该链接。当我在一个特定的网络中时,我经常面临这个问题…非常感谢。现在我知道为什么了。非常感谢!这解决了我的问题
2013-02-15T08:38:00+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by ssalamat.peg@gmail.com
2013-02-15T08:38:03+00:00 heroku[run.6510]: Awaiting client
2013-02-15T08:38:03+00:00 heroku[run.6510]: Starting process with command `bundle exec rake db:migrate`
2013-02-15T08:38:04+00:00 heroku[run.6510]: State changed from starting to up
2013-02-15T08:38:33+00:00 heroku[run.6510]: Error R13 (Attach error) -> Failed to attach to process
2013-02-15T08:38:34+00:00 heroku[run.6510]: Process exited with status 128
2013-02-15T08:38:34+00:00 heroku[run.6510]: State changed from up to complete
 heroku run:detached rake db:migrate
heroku run rails console
telnet rendezvous.runtime.heroku.com 5000