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

Merge pull request #795 from unleashed/redirects-from-cmdline

puma/cli: support specifying STD{OUT,ERR} redirections and append mode
This commit is contained in:
Evan Phoenix 2015-11-06 09:59:32 -08:00
commit 8569e5f0ef

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