Correctly set environment

This commit is contained in:
Maximilian Grundke
2018-01-31 11:16:41 +01:00
parent 842b5c5f23
commit b5f282b206

View File

@ -20,6 +20,7 @@
# Learn more: http://github.com/javan/whenever
set :output, Whenever.path + '/log/whenever_$(date +%Y%m%d%H%M%S).log'
set :environment, ENV['RAILS_ENV'] if ENV['RAILS_ENV']
every 1.day, at: '3:00 am' do
rake 'detect_exercise_anomalies:with_at_least[50,50]'