Execute command after deployment (Capistrano and Symfony)
<p>I want to execute Shell command after Capistrano deployment (<em>cp</em>) : <strong>swift</strong></p>

<pre><code>    # config valid only for current version of Capistrano
lock '3.5.0'

set :application, 'Dometech.fr'
set :repo_url, 'ssh://git@MYIP:MYPORT/var/www/depotsGit/myproject.git/'
set :deploy_to, '/var/www/dev/Myproject'

set :symfony_directory_structure, 2

set :controllers_to_clear, []

namespace :deploy do
    after "deploy:updated" , "composer:install"

    # Clear ACL only before switching version
    before "deploy:publishing" , "symfony:fixes_acl"
end

namespace :swift do
    desc 'Swift config'
    task :swift do
    on roles(:web) do
        execute :cp, '/var/www/a.php /var/www/b.php'
    end
     end
end
</code></pre>

<p>But this simple command never executed ... can you help me ?</p>