I\'m new to Capistrano and I\'ve tried using Capistrano\'s DSL to run shell commands on the server (\'run\', \'execute\', etc.), but it appears that it was deprecated. After
In Capistrano v3, you must specify where you want to run the code by calling on
with a list of hostnames, e.g.
task :execute_on_server do
on "root@example.com" do
execute "some_command"
end
end
If you have roles set up, you can use the roles
method as a convenience:
role :mailserver, "root@mail.example.com"
task :check_mail do
on roles(:mailserver) do
execute "some_command"
end
end
There is some v3 documentation here: http://www.capistranorb.com/