Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deploy task for data migrations. #1227

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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