heroku:连接到终端的运行控制台... [英] heroku: Running console attached to terminal...

查看:209
本文介绍了heroku:连接到终端的运行控制台...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将一个简单的Rails应用程序部署到一个heroku帐户,我能够登录和推送,只有当我尝试
heroku运行rake db时:migrate

I am trying to deploy a simple rails application to an heroku account, I was able to login and push, only it seems to hang when I try to heroku run rake db:migrate



or to

heroku run console

我收到消息

I get the message

Running console attached to terminal... 

然后没有任何反应......它只是挂起。我读到它可能是我有一些阻塞的端口(如端口5000),但对我来说似乎很奇怪,我从来没有遇到过这样的问题......

and then nothing happens... it just hangs. I read that it could be I have some blocked ports (like, port 5000) but it seems quite strange to me, I never had such problems before...

我在Ubuntu上,我该如何检查是否是这种情况?或者我该如何解决这个问题?任何人有任何提示?我已经尝试过heroku更新,同样的问题...

I am on Ubuntu, how can I check if that's the case? or how could I fix the issue? Anybody got any hint? I already tried to heroku update, same issue...

推荐答案

它的端口问题我也遇到同一个问题他们的支持人员告诉我顶部打开端口。

Its the port problem i also face the same issue a while ago and their support guys told me top make open the port.

这是他们的回复

这个问题通常是由连接或防火墙问题引起的。通过运行以下命令,您可以测试与我们的heroku run和heroku控制台服务器的连接:

This problem is typically caused by a connectivity or firewall issue. You can test your connection to our heroku run and heroku console servers by running the following commands:

telnet rendezvous.heroku.com 5000
telnet s1.runtime.heroku.com 5000

有些用户在将这些主机名+端口组合在他们的防火墙。我们建议您联系您的IT部门以解决此问题。

Some users have success after whitelisting these hostname+port combinations in their firewall. We recommend contacting your IT department to move forward with this issue.

如果您能够成功连接,请按 Ctrl + ] (右括号),然后键入quit退出telnet会话。

If you are successfully able to connect, press Ctrl+] (right bracket) and then type quit to exit the telnet session.

需要很长时间才能启动的应用程序也会加剧连接问题。如果服务器的响应速度不够快,您的本地连接将在应用程序启动之前超时。

An application which takes a long time to boot can also exasperate connectivity issues. If the server does not respond quickly enough, your local connection will timeout before the app can boot.

这篇关于heroku:连接到终端的运行控制台...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆