在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:inblock 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:inwith_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级)in “ /Users/justin/.rvm/gems/ruby-2.0.0-p247@rails4/gems/heroku_san-4.3.2/lib/heroku_san/project.rb:61:inblock 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:ineach_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:inblock (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:inblock 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:incommand' /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 gofork' /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:ineach' /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:inloop' /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:inblock (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:inblock (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:inblock 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:ingo' /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 gofork' /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:ineach' /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:inloop' /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:inblock (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:inblock (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:inblock 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:ingo' -e:1:in
'任务:TOP =&gt; logs:tail =&gt; heroku:logs:tail(通过使用--trace运行任务查看完整跟踪)