ruby - Capistrano, change host in task -
i have following problem:
i need write capistrano task execute commands on test_server_1 , switch test_server_2 set of commands.
i found out, can sth like:
task :test_task_for_test_server_1, roles: :test run 'command 1' test_server_2 run 'command 2' end
command 1 executed on test_server_1 , command 2 executed on both servers. need close session of test_server_1 , execute second command on test_server_2. ideas if it's possible?
did try this?
task :test_task_for_test_server_1, roles: :test run 'command 1', :server => :test_server_1 run 'command 2', :server => :test_server_2 end
Comments
Post a Comment