Permalink
Browse files

Prepare for heroku deployment

  • Loading branch information...
amiel committed Dec 9, 2009
1 parent 79312ba commit 111952817cf75d95cc361663e2f713a0fdebf0f1
Showing with 133 additions and 1 deletion.
  1. +2 −0 app/models/fetch.rb
  2. +1 −1 app/models/observation.rb
  3. +94 −0 public/sprockets/application.js
  4. +36 −0 public/sprockets/excanvas.js
View
@@ -11,7 +11,9 @@ def self.start!
after_create :spawn_and_fetch
def spawn_and_fetch
+ logger.error('STARTING SPAWN')
spawn do
+ logger.error("SPAWN STARTED: #{Time.current}")
self.update_attribute :start_at, Time.current
Gather.bellingham_coldstorage_observations!
@@ -7,7 +7,7 @@ class Observation < ActiveRecord::Base
def self.need_fetch?
return true unless Observation.first
- Observation.last.observed_at < 55.minutes.ago
+ Observation.last.observed_at < 35.minutes.ago
end
def observed_at_for_flot
Oops, something went wrong.

0 comments on commit 1119528

Please sign in to comment.