Merge pull request #1152 from basecamp/skip-log-max-size
Allow log max size to not be set
This commit is contained in:
@@ -254,7 +254,7 @@ class Kamal::Configuration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def proxy_logging_args(max_size)
|
def proxy_logging_args(max_size)
|
||||||
argumentize "--log-opt", "max-size=#{max_size}"
|
argumentize "--log-opt", "max-size=#{max_size}" if max_size.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
def proxy_options_default
|
def proxy_options_default
|
||||||
|
|||||||
@@ -263,6 +263,15 @@ class CliProxyTest < CliTestCase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "boot_config set no log max size" do
|
||||||
|
run_command("boot_config", "set", "--log-max-size=").tap do |output|
|
||||||
|
%w[ 1.1.1.1 1.1.1.2 ].each do |host|
|
||||||
|
assert_match "Running /usr/bin/env mkdir -p .kamal/proxy on #{host}", output
|
||||||
|
assert_match "Uploading \"--publish 80:80 --publish 443:443\" to .kamal/proxy/options on #{host}", output
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
test "boot_config set custom ports" do
|
test "boot_config set custom ports" do
|
||||||
run_command("boot_config", "set", "--http-port", "8080", "--https-port", "8443").tap do |output|
|
run_command("boot_config", "set", "--http-port", "8080", "--https-port", "8443").tap do |output|
|
||||||
%w[ 1.1.1.1 1.1.1.2 ].each do |host|
|
%w[ 1.1.1.1 1.1.1.2 ].each do |host|
|
||||||
|
|||||||
Reference in New Issue
Block a user