0

在 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 block 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:inlogs' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/tasks.rb:267:in块(4 级)在' /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 each' /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:ineach_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 fork' /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 block (3 levels) in go' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus -0.13.3/lib/zeus.rb:80:in fork' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/zeus-0.13.3/lib/zeus.rb:80:in 块(2 级)在 go' /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 块在 go' /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 fork' /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 each' /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 loop' /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 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 fork' /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 each' /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 loop' /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 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 fork' /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 each' /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 loop' /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/ gems/zeus-0.13.3/lib/zeus.rb:62:in go' -e:1:in' Tasks: TOP => logs:tail => heroku:logs:tail (通过使用 --trace 运行任务查看完整跟踪)

4

0 回答 0