Skip to content

Commit 620b132

Browse files
authored
Merge pull request #1313 from emmceemoore/patch-1
Configure the CLI to exit non-zero on failures.
2 parents 2e7d0dd + 2943c4a commit 620b132

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/kamal/cli/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Kamal::Cli
55
class Base < Thor
66
include SSHKit::DSL
77

8-
def self.exit_on_failure?() false end
8+
def self.exit_on_failure?() true end
99
def self.dynamic_command_class() Kamal::Cli::Alias::Command end
1010

1111
class_option :verbose, type: :boolean, aliases: "-v", desc: "Detailed logging"

test/integration/main_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ class MainTest < IntegrationTest
9090
test "setup and remove" do
9191
@app = "app_with_roles"
9292

93-
kamal :proxy, :set_config,
93+
kamal :proxy, :boot_config, "set",
9494
"--publish=false",
95-
"--options=label=traefik.http.services.kamal_proxy.loadbalancer.server.scheme=http",
95+
"--docker-options=label=traefik.http.services.kamal_proxy.loadbalancer.server.scheme=http",
9696
"label=traefik.http.routers.kamal_proxy.rule=PathPrefix\\\(\\\`/\\\`\\\)",
9797
"label=traefik.http.routers.kamal_proxy.priority=2"
9898

0 commit comments

Comments
 (0)