Permalink
Browse files

Adding bundle exec to script/backgroundrb calls in deployment

  • Loading branch information...
cdubose
cdubose committed May 9, 2012
1 parent dacfbf8 commit 449331cfa9f7b94c46da046417a9e1aa4d7a56c8
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/deploy_jobs.rb
View
@@ -1,34 +1,34 @@
namespace :delayed_job do
desc "Stop the delayed_job process"
task :stop, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job stop" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/delayed_job stop" unless rails_env == "test"
end
desc "Start the delayed_job process"
task :start, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job start" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/delayed_job start" unless rails_env == "test"
end
desc "Restart the delayed_job process"
task :restart, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job restart" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/delayed_job restart" unless rails_env == "test"
end
end
namespace :backgroundrb do
desc "stop backgroundrb"
task :stop, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/backgroundrb stop" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/backgroundrb stop" unless rails_env == "test"
end
desc "start backgroundrb"
task :start, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/backgroundrb start" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/backgroundrb start" unless rails_env == "test"
end
desc "restart backgroundrb"
task :restart, :roles => :jobs do
- run "cd #{current_path}; RAILS_ENV=#{rails_env} script/backgroundrb restart" unless rails_env == "test"
+ run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec script/backgroundrb restart" unless rails_env == "test"
end
end

0 comments on commit 449331c

Please sign in to comment.