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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -