1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

puma/cli: support specifying STD{OUT,ERR} redirections and append mode

This commit is contained in:
Alejandro Martinez Ruiz 2015-10-01 18:23:55 +02:00
parent 264dc0583c
commit 3c54c64c7a

View file

@ -410,6 +410,18 @@ module Puma
@cli_options[:tag] = arg
end
o.on "--redirect-stdout FILE", "Redirect STDOUT to a specific file" do |arg|
@cli_options[:redirect_stdout] = arg
end
o.on "--redirect-stderr FILE", "Redirect STDERR to a specific file" do |arg|
@cli_options[:redirect_stderr] = arg
end
o.on "--[no-]redirect-append", "Append to redirected files" do |val|
@cli_options[:redirect_append] = val
end
o.banner = "puma <options> <rackup file>"
o.on_tail "-h", "--help", "Show help" do