Skip to content

Commit

Permalink
Force success
Browse files Browse the repository at this point in the history
  • Loading branch information
kormoc committed Jun 17, 2017
1 parent ead7993 commit 84acd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
desc 'Deploys the current version to the server.'
task deploy: :environment do
on :prepare do
command "cd #{fetch(:deploy_to)}/current && RAILS_ENV=production bundle exec bin/delayed_job stop"
command "cd #{fetch(:deploy_to)}/current && RAILS_ENV=production bin/delayed_job stop"
end

deploy do
Expand All @@ -46,7 +46,7 @@

on :launch do
command "sudo /etc/init.d/apache2 restart"
command "cd #{fetch(:deploy_to)}/current && RAILS_ENV=production bundle exec bin/delayed_job start"
command "cd #{fetch(:deploy_to)}/current && RAILS_ENV=production bin/delayed_job start || true"
end

invoke :'deploy:cleanup'
Expand Down

0 comments on commit 84acd25

Please sign in to comment.