1

我一直在尝试在 cedar 上进行 heroku 控制台会话,但我没有任何乐趣。

旧的方法是:

heroku console

我了解新方法涉及两个步骤:

heroku run bash

然后

$ rails console

但在 heroku run bash 阶段,我不断得到:

heroku run bash
Running `bash` attached to terminal... up, run.1
 !    
 !    Timeout awaiting process

所以我检查了没有端口阻塞问题并且

telnet rendezvous.heroku.com 5000

Trying 50.19.103.36... 
Connected to ec2-50-19-103-36.compute-1.amazonaws.com. 
Escape character is '^]'.

正如我所料

我做错了什么,我需要做什么才能让这个控制台启动并运行?

谢谢!

PS我也试过了——heroku运行控制台——也超时了。

4

3 回答 3

7

在 cedar 中,每个需要附加到终端的命令都使用 run。前任:

heroku run console
heroku run rake db:migrate

如果不需要附加,请不要使用run:
ex:heroku logs

于 2012-10-16T19:04:56.617 回答
1

新方法是heroku run console

于 2012-06-21T15:02:35.417 回答
0

好的 - 睡了几个小时后很明显。只需更新在我的 Mac 上以某种方式损坏的 heroku gem。如果您有类似的问题,请先执行此操作...

于 2012-06-27T16:55:13.653 回答