Skip to content

Commit

Permalink
Merge pull request #1308 from pokonski/proxy-accessory-fix
Browse files Browse the repository at this point in the history
Boot proxy on server setup
  • Loading branch information
djmb authored Jan 17, 2025
2 parents 85c1c47 + c56edba commit e081414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/kamal/cli/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ def setup
say "Ensure Docker is installed...", :magenta
invoke "kamal:cli:server:bootstrap", [], invoke_options

say "Ensure kamal-proxy is running...", :magenta
invoke "kamal:cli:proxy:boot", [], invoke_options

invoke "kamal:cli:accessory:boot", [ "all" ], invoke_options
deploy
end
Expand Down
1 change: 1 addition & 0 deletions test/cli/main_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class CliMainTest < CliTestCase
invoke_options = { "config_file" => "test/fixtures/deploy_simple.yml", "version" => "999", "skip_hooks" => false }

Kamal::Cli::Main.any_instance.expects(:invoke).with("kamal:cli:server:bootstrap", [], invoke_options)
Kamal::Cli::Main.any_instance.expects(:invoke).with("kamal:cli:proxy:boot", [], invoke_options)
Kamal::Cli::Main.any_instance.expects(:invoke).with("kamal:cli:accessory:boot", [ "all" ], invoke_options)
Kamal::Cli::Main.any_instance.expects(:deploy)

Expand Down

0 comments on commit e081414

Please sign in to comment.