Skip to content

Commit e081414

Browse files
authoredJan 17, 2025
Merge pull request #1308 from pokonski/proxy-accessory-fix
Boot proxy on server setup
2 parents 85c1c47 + c56edba commit e081414

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎lib/kamal/cli/main.rb

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ def setup
99
say "Ensure Docker is installed...", :magenta
1010
invoke "kamal:cli:server:bootstrap", [], invoke_options
1111

12+
say "Ensure kamal-proxy is running...", :magenta
13+
invoke "kamal:cli:proxy:boot", [], invoke_options
14+
1215
invoke "kamal:cli:accessory:boot", [ "all" ], invoke_options
1316
deploy
1417
end

‎test/cli/main_test.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CliMainTest < CliTestCase
88
invoke_options = { "config_file" => "test/fixtures/deploy_simple.yml", "version" => "999", "skip_hooks" => false }
99

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

0 commit comments

Comments
 (0)