Sha256: 114c8e093120a297c03cf4a2916a7d9cea52660cc31a28e4a5fbede6fde9c512
Contents?: true
Size: 711 Bytes
Versions: 14
Compression:
Stored size: 711 Bytes
Contents
<% @read_cmd = 'crontab -l' @write_cmd = 'crontab -' %> # cron clears out environment variables, but Rubber.root/script/rubber uses # "rvm do default" to run, so no longer any need to setup ruby env vars here, # all we need is PATH PATH=<%= ENV['PATH'] %> MAILTO=<%= rubber_env.admin_email %> # don't need to set RUBBER_ENV for each script since we set it for all cron here RUBBER_ENV=<%= Rubber.env %> RAILS_ENV=<%= Rubber.env %> # Roll all rails logs at midnight 0 0 * * * <%= Rubber.root %>/script/rubber cron --task util:rotate_logs --directory=<%= Rubber.root %>/log # Automatically set the clock for all machines <%= rand(60) %> 4 * * * <%= Rubber.root %>/script/rubber cron ntpdate pool.ntp.org
Version data entries
14 entries across 14 versions & 1 rubygems