fetch(:linked_files, []).push('app/config/parameters.yml') set :ssh_options, { # 環境変数CAP_PRIVATE_KEYでssh鍵のパスを受け取る keys: [ENV['CAP_PRIVATE_KEY']], forward_agent: true } # マイグレーションタスクを定義 namespace :deploy do task :migrate do invoke 'symfony:console', 'doctrine:migrations:migrate', '--no-interaction' end end after 'deploy:updated', 'composer:install' after 'composer:install', 'symfony:assetic:dump' after 'composer:install', 'deploy:migrate' after 'deploy:finishing', 'deploy:cleanup' ઃఆྫʢdeploy.rbʣ