File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ require 'capistrano/rails'
99require 'capistrano/puma'
1010install_plugin Capistrano ::Puma
1111install_plugin Capistrano ::Puma ::Systemd
12+
13+ # Load custom tasks from `lib/capistrano/tasks` if you have any defined
14+ Dir . glob ( 'lib/capistrano/tasks/*.rake' ) . each { |r | import r }
Original file line number Diff line number Diff line change 1+ namespace :contributions do
2+ desc 'Sync the contributions from scratch'
3+ task :rebuild do
4+ on roles ( :app ) do
5+ within current_path do
6+ with rails_env : fetch ( :rails_env ) do
7+ execute :rake , 'contributions:rebuild'
8+ end
9+ end
10+ end
11+ end
12+ end
Original file line number Diff line number Diff line change 1+ namespace :contributions do
2+ desc 'Sync the contributions from scratch'
3+ task rebuild : :environment do
4+ Repo . sync ( rebuild_all : true )
5+ end
6+ end
You can’t perform that action at this time.
0 commit comments