lib/under_construction/schedule.rb in under_construction-0.1.2 vs lib/under_construction/schedule.rb in under_construction-0.1.3

- old
+ new

@@ -30,10 +30,10 @@ Rails::Generators.invoke('under_construction:clear') # If there's a scheduled job, remove it stop_schedule if jobs.size > 0 # To make passenger to restart the application FileUtils.touch Rails.root + 'tmp/restart.txt' - # After restart server, sends email to subscribers - system "bundle exec rake under_construction:send_mails RAILS_ENV=#{Rails.env}" + # After restarts server, sends email to subscribers + system "cd #{Rails.root}; bundle exec rake under_construction:send_mails RAILS_ENV=#{Rails.env}" end end end