I'm using datamapper 1.1.0 with sinatra 1.2.6.
I run my application under Apache with Phusion Passenger, and
I use the conservative spawning scheme. I connect to a postgres
9 database on localhost.
The problem is I'm getting intermittent errors from the phusion-spawned
applications. On occasion an application will start failing with
Internal Server Error - DataMapper::RepositoryNotSetupError Adapter
not set: default. Did you forget to setup?
However, I don't use :default - my models are used with other repositories, so
I've named them using default_repository_name as so:
class WhatEver
include DataMapper::Resource
...
def self.default_repository_name
:what_ever
end
I initialize the data mapper setup call with :what_ever just once,
in my sinatra's app.rb.
Normally this problem only occurs for a short time after an updated
installation, then goes away by its own after a while, but now I'm
seeing it more and more frequently.
Anyone seen anything like this?
-Randy Fischer
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.