Heroku run命令抛出超时

2024-04-26 01:06:46 发布

您现在位置:Python中文网/ 问答频道 /正文

每次我跑步

heroku run python manage.py syncdb

或者

^{pr2}$

它控制台“超时等待过程”,我甚至尝试过

telnet rendezvous.heroku.com 5000

it控制台
尝试50.19.103.36…
telnet:无法连接到远程主机:连接超时
我怎么解决这个问题? 提前谢谢


Tags: runpycomheroku远程manage过程it
2条回答

您可以通过使用管路:分离为根据这篇文章:Heroku run command throws timeout await

有效地尝试:

heroku run:detached python manage.py syncdb

Timeout awaiting process

The heroku run command opens a connection to Heroku on port 5000. If your local network or ISP is blocking port 5000, or you are experiencing a connectivity issue, you will see an error similar to:

$ heroku run rails console Running rails console attached to terminal... Timeout awaiting process

You can test your connection to Heroku by trying to connect directly to port 5000 by using telnet to rendezvous.runtime.heroku.com. A successful session will look like this:

$ telnet rendezvous.runtime.heroku.com 5000 Trying 50.19.103.36... Connected to ec2-50-19-103-36.compute-1.amazonaws.com. Escape character is '^]'.

If you do not get this output, your computer is being blocked from accessing our services. We recommend contacting your IT department, ISP, or firewall manufacturer to move forward with this issue.

我从heroku文档中得到了这个,可以找到here

所以快跑

telnet rendezvous.runtime.heroku.com

在你的壳上。您在命令中省略了“运行时”。在

相关问题 更多 >