fixes to whenever scripts
This commit is contained in:
@@ -72,6 +72,11 @@ module Danbooru
|
||||
300
|
||||
end
|
||||
|
||||
# If a solid state drive is availble, cache the thumbnails on the SSD to reduce disk seek times.
|
||||
def ssd_path
|
||||
nil
|
||||
end
|
||||
|
||||
# List of memcached servers
|
||||
def memcached_servers
|
||||
%w(localhost:11211)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user