Skip to content

Commit

Permalink
Fix pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 20, 2024
1 parent 384b36d commit afa6898
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/kamal/commands/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def logs(timestamps: true, since: nil, lines: nil, grep: nil, grep_options: nil)

def follow_logs(host:, timestamps: true, grep: nil, grep_options: nil)
run_over_ssh pipe(
docker(:logs, container_name),
("--timestamps" if timestamps),
"--tail", "10", "--follow", "2>&1"),
docker(:logs, container_name, ("--timestamps" if timestamps), "--tail", "10", "--follow", "2>&1"),
(%(grep "#{grep}"#{" #{grep_options}" if grep_options}) if grep)
).join(" "), host: host
end
Expand Down

0 comments on commit afa6898

Please sign in to comment.