Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
SofiaSousa committed Jun 22, 2018
2 parents d4f6324 + 89a9457 commit d14f735
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

before 'yarn:install', 'deploy:generate_assets'
after 'yarn:install', 'deploy:canvas_compile_assets'
after "deploy", "delayed_job:restart"

namespace :deploy do
desc 'Generate Assets'
Expand Down Expand Up @@ -109,3 +110,38 @@
end
end
end

namespace :delayed_job do
desc 'Stop the delayed_job process'
task :stop do
on roles(:app) do
within release_path do
with rails_env: 'production' do # always production (staging and production)
execute :bundle, :exec, 'script/delayed_job', :stop
end
end
end
end

desc 'Start the delayed_job process'
task :start do
on roles(:app) do
within release_path do
with rails_env: 'production' do # always production (staging and production)
execute :bundle, :exec, 'script/delayed_job', :start
end
end
end
end

desc 'Restart the delayed_job process'
task :restart do
on roles(:app) do
within release_path do
with rails_env: 'production' do # always production (staging and production)
execute :bundle, :exec, 'script/delayed_job', :restart
end
end
end
end
end

0 comments on commit d14f735

Please sign in to comment.