Skip to content

Commit

Permalink
Merge pull request #1313 from emmceemoore/patch-1
Browse files Browse the repository at this point in the history
Configure the CLI to exit non-zero on failures.
  • Loading branch information
djmb authored Jan 17, 2025
2 parents 2e7d0dd + 2943c4a commit 620b132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/kamal/cli/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Kamal::Cli
class Base < Thor
include SSHKit::DSL

def self.exit_on_failure?() false end
def self.exit_on_failure?() true end
def self.dynamic_command_class() Kamal::Cli::Alias::Command end

class_option :verbose, type: :boolean, aliases: "-v", desc: "Detailed logging"
Expand Down
4 changes: 2 additions & 2 deletions test/integration/main_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ class MainTest < IntegrationTest
test "setup and remove" do
@app = "app_with_roles"

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

Expand Down

0 comments on commit 620b132

Please sign in to comment.