Skip to content

Commit

Permalink
Add deploy task for data migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenk committed Feb 23, 2015
1 parent 5423245 commit 9792314
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/capistrano/tasks/deploy.cap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,19 @@ namespace :deploy do
end
end

desc "Migrate data asynchronously"
task :migrate_data_asynchronously do
on roles(:app) do
within current_path do
with rails_env: fetch(:rails_env) do
execute :rake, 'data:migrate:async'
end
end
end
end

after :updated, :create_hets_instances
after :updated, :migrate_data_asynchronously

after :updated, :symlink_secret
after :updated, :set_revision
Expand Down

0 comments on commit 9792314

Please sign in to comment.