使用heroku_san gem,rake <app> logs:tail无法退出</app>

时间:2013-11-17 06:15:54

标签: ruby-on-rails heroku zeus iterm2 heroku-san

在Mountain Lion上使用iTerm2,如何在heroku上停止日志尾部?

Ctrl-C不起作用。

解决方法是终止进程ID,但这非常不方便。

我为此开了一个问题:https://github.com/fastestforward/heroku_san/issues/159

我希望iTerm2有一些神奇的关键组合。

我猜这个问题与在zeus中运行rake任务有关。这是ctrl-c命中时的堆栈跟踪:

  

^ Crake流产了!

     

/Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/api.rb:17:in   system' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/api.rb:17:in 挡住sh'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/bundler-1.5.0.rc.1/lib/bundler.rb:229:in   block in with_clean_env' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/bundler-1.5.0.rc.1/lib/bundler.rb:216:in with_original_env”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/bundler-1.5.0.rc.1/lib/bundler.rb:222:in   with_clean_env' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/api.rb:17:in SH”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/stage.rb:126:in logs' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/tasks.rb:267:in块(4级)in “   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/project.rb:61:in   block in each_app' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/project.rb:60:in 每个”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/project.rb:60:in   each_app' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/tasks.rb:321:in each_heroku_app”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/tasks.rb:266:in block (3 levels) in <top (required)>' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus/rails.rb:111:in rake'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:116:in   block in command' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:103:in 叉”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:103:in   command' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:80:in 阻止(3级)进去'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:80:in   go fork' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:80:in 阻止(2级)   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in   each' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in 挡住了'去'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in   loop' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in 去”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in   block (3 levels) in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in 叉”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in   block (2 levels) in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in 每个”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in   block in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in 环”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in   go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in 阻止(3级)进去'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in   go fork' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in 阻止(2级)   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in   each' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in 挡住了'去'   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in   loop' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in 去”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in   block (3 levels) in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in 叉”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:78:in   block (2 levels) in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in 每个”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:73:in   block in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in 环”   /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:62:in   go' -e:1:in'任务:TOP =&gt; logs:tail =&gt; heroku:logs:tail(通过使用--trace运行任务查看完整跟踪)

0 个答案:

没有答案