Skip to content

Commit

Permalink
Fixing deploy with data
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Jul 31, 2024
1 parent 3407516 commit f7e6f35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ require 'capistrano/rails/assets'
require 'capistrano/scm/git'
require 'capistrano/slackify'

require 'capistrano/data_migrate'

install_plugin Capistrano::SCM::Git

# Loads custom tasks from capistrano/tasks if you have any defined.
Expand Down
2 changes: 1 addition & 1 deletion capistrano/tasks/deploy.cap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace :deploy do
task :migrate do
on roles(:app) do
within release_path do
execute :bash, "-c '[[ -f ~/.bashrc.tickets ]] && source ~/.bashrc.tickets; RAILS_ENV=#{fetch(:rails_env)} bundle exec rake db:migrate'"
execute :bash, "-c '[[ -f ~/.bashrc.tickets ]] && source ~/.bashrc.tickets; RAILS_ENV=#{fetch(:rails_env)} bundle exec rake db:migrate:with_data'"
end
end
end
Expand Down

0 comments on commit f7e6f35

Please sign in to comment.