ruby on rails - Heroku fails to perform clockwork delayed tasks -


i having clockwork configuration file(inside lib folder) queues file's methods perform delayed tasks.

require_relative "adwords/extractor" 

it working fine on local machine (webrick running on win8). on heroku, failing following error:

 'app[web.1]: /app/lib/clock.rb:5:in `require_relative': cannot load such file -- /app/li   b/adwords/extractor (loaderror)' 

the extractor.rb script located @ same place mentioned error statement.

try out

require "#{rails.root}/app/lib/adwords/extractor" 

use relative path rails app.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -