2012-06-21 95 views
1

我一直在試圖得到一個heroku控制檯會話雪松,我沒有喜悅。heroku雪松控制檯

舊的方式是:

heroku console 

我理解新方式包括兩個步驟:

heroku run bash 

然後

$ rails console 

但在Heroku的運行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運行控制檯 - 也,並超時了。

回答

6

在雪松中需要連接到終端的每個命令使用運行。 例如:

heroku run console 
heroku run rake db:migrate 

當它不需要附加不使用run
例如:heroku logs

1

新的方法是heroku run console

+0

是的,這超時太... – user1051849

0

確定 - 它睡了幾個小時後是顯而易見的。只是不得不更新我的Mac上已經損壞的heroku寶石。如果你有這樣的問題,那麼先做...