Permalink
Browse files

Merge pull request #41 from svoop/master

Fix for delayed_job not restarting.
  • Loading branch information...
2 parents 49e219f + f3f1b5d commit 6d5f2339ebcbddbd1380316053b324f80fcf4428 @dcrec1 committed Mar 26, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/inploy/deploy.rb
  2. +2 −2 spec/shared_examples.rb
View
@@ -95,7 +95,7 @@ def after_update_code
migrate_database
update_crontab
run "rm -R -f public/assets" if jammit_is_installed?
- run "RAILS_ENV=#{environment} script/delayed_job restart" if file_exists?("script/delayed_job")
+ run "script/delayed_job -e #{environment} restart" if file_exists?("script/delayed_job")
rake_if_included "more:parse"
run "compass compile" if file_exists?("config/compass.rb")
rake_if_included "barista:brew"
View
@@ -396,14 +396,14 @@
it "should restart the delayed job worker if script/delayed_job exist" do
subject.environment = "env9"
file_exists "script/delayed_job"
- expect_command "RAILS_ENV=env9 script/delayed_job restart"
+ expect_command "script/delayed_job -e env9 restart"
subject.local_update
end
it "should not restart the delayed job worker if script/delayed_job doesnt exist" do
subject.environment = "env9"
file_doesnt_exists "script/delayed_job"
- dont_accept_command "RAILS_ENV=env9 script/delayed_job restart"
+ dont_accept_command "script/delayed_job -e env9 restart"
subject.local_update
end

0 comments on commit 6d5f233

Please sign in to comment.