fixes to whenever scripts

This commit is contained in:
albert
2011-08-23 16:15:29 -04:00
parent f63a69ae6e
commit e3a9614930
3 changed files with 28 additions and 6 deletions

View File

@@ -1,11 +1,11 @@
set :output, "/var/log/whenever.log"
every 1.hour do
TagSubscription.process_all
runner "TagSubscription.process_all"
end
if fetch(:whenever_environment) == "production"
if environment == "production"
every 1.hour do
AmazonBackup.execute
runner "AmazonBackup.execute"
end
end