mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
Adding scheduler.rake for heroku
This commit is contained in:
parent
e5aabf4ab8
commit
81f8214700
3 changed files with 6 additions and 3 deletions
1
Gemfile
1
Gemfile
|
|
@ -36,7 +36,6 @@ gem 'jquery-rails'
|
|||
|
||||
gem 'devise', '>= 2.0'
|
||||
gem 'whenever'
|
||||
gem "acts_as_list"
|
||||
gem 'web-app-theme', :git => 'https://github.com/pilu/web-app-theme.git'
|
||||
gem 'rails-backbone'
|
||||
gem 'heroku'
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ GEM
|
|||
activesupport (3.2.1)
|
||||
i18n (~> 0.6)
|
||||
multi_json (~> 1.0)
|
||||
acts_as_list (0.1.4)
|
||||
addressable (2.2.6)
|
||||
arel (3.0.0)
|
||||
bcrypt-ruby (3.0.1)
|
||||
|
|
@ -149,7 +148,6 @@ PLATFORMS
|
|||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
acts_as_list
|
||||
coffee-rails (~> 3.2.1)
|
||||
devise (>= 2.0)
|
||||
heroku
|
||||
|
|
|
|||
6
lib/tasks/scheduler.rake
Normal file
6
lib/tasks/scheduler.rake
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
desc "This task is called by the Heroku scheduler add-on"
|
||||
task :clear_done => :environment do
|
||||
puts "Clearing users' completed daily tasks, and docking points for incompletes..."
|
||||
Habit.clear_done
|
||||
puts "done."
|
||||
end
|
||||
Loading…
Reference in a new issue