Skip to content

Commit

Permalink
Set RAILS_ENV in cap task since the --environment option is currently…
Browse files Browse the repository at this point in the history
… broken.
  • Loading branch information
bkeepers committed Sep 23, 2009
1 parent f587185 commit 6c12ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/delayed/recipes.rb
Expand Up @@ -11,17 +11,17 @@
namespace :delayed_job do
desc "Stop the delayed_job process"
task :stop, :roles => :app do
run "cd #{current_path}; script/delayed_job -e #{rails_env} stop"
run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job stop"
end

desc "Start the delayed_job process"
task :start, :roles => :app do
run "cd #{current_path}; script/delayed_job -e #{rails_env} start"
run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job start"
end

desc "Restart the delayed_job process"
task :restart, :roles => :app do
run "cd #{current_path}; script/delayed_job -e #{rails_env} restart"
run "cd #{current_path}; RAILS_ENV=#{rails_env} script/delayed_job restart"
end
end
end

0 comments on commit 6c12ab7

Please sign in to comment.