Closed netwire88 closed 12 years ago
do you have the asin configuration in lib? or did you clone the repos in there?
did you use an initializer to configure the repo?
did you put lib into the autoloadpath?
i dont think that this error is asin specific. it looks like an error in your load path setup.
I agree it might be a configuration issue. My ASIN is configured by adding asin.rb to the /config/initializers directory. Here's the content of it:
ASIN::Configuration.configure do |config|
config.secret = ENV['AMAZON_SECRET']
config.key = ENV['AMAZON_KEY']
config.associate_tag = ENV['AMAZON_TAG']
config.version = ENV['AMAZON_VERSION']
end
How do I configure it with unicorn.rb?
To be specific, it fails in Configuration module, line 123:
def blank?(key)
val = self.send key <---- throws Exception, key input = secret
val.nil? || val.empty?
end
try putting require "asin" in the initializer.
no idea what could cause this, did not use unicorn upto now
I just migrated from Thin to Unicorn, everything's working except ASIN. I'm getting the following error, do I need to configure an "after_fork" method or something in order for ASIN to work with Unicorn?
Here's a portion of the error message: