Files
danbooru/config/schedule.rb
evazion 0563ca3001 docs: document config/ and some directories in app/.
* Add README files to several directories in app/ giving a brief
  overview of some parts of Danbooru's architecture.
* Add documentation for files in config/.
2021-06-27 05:21:38 -05:00

27 lines
506 B
Ruby

# This file is used by the `whenver` gem to generate a crontab that runs
# Danbooru's maintenance tasks.
#
# @see app/logical/danbooru_maintenance.rb
# @see https://github.com/javan/whenever
# this is used in config/environments/production.rb.
env "RAILS_LOG_TO_STDOUT", "true"
set :output, "log/whenever.log"
every :hour do
rake "maintenance:hourly"
end
every :day do
rake "maintenance:daily"
end
every :sunday do
rake "maintenance:weekly"
end
every :month do
rake "maintenance:monthly"
end