views:

47

answers:

0

I've got a Sinatra app which uses DataMapper to connect to an sqlite3 database.

APP_ROOT = File.expand_path(File.dirname(__FILE__))
DataMapper::setup(:default, "sqlite3://#{APP_ROOT}/db.sqlite3")

If I rackup the app and connect it works fine, no errors, and the db is created. However if I run the app through Passenger I get the error unable to open database file (DataObjects::ConnectionError).

Any ideas? I'm all Googled out!

  • Apache 2.2.12
  • Passenger 2.2.15
  • DataMapper 1.0.2