ruby on rails - Sqlite3 getting ActiveRecord::ConnectionTimeoutError Heroku -


i using rails 4.0.4. error happening more upgraded 4.0.1.

we using sqlite3 in production (something didn't realize). have created postgres db before, suppose can switch on postgres, if seems problem. be? [if bc sqlite, there easy way convert past data sqlite data?]

2014-05-29t17:46:29.300034+00:00 app[web.2]: activerecord::connectiontimeouterror (could not obtain database connection within 5.000 seconds (waited 5.003 seconds)): 

http://pastebin.com/8pzkvpuk

production:   adapter: sqlite3   database: db/production.sqlite3   pool: 5   timeout: 5000 

i noticed in gemfile

gem 'sqlite3', :group => [:development, :test] gem 'pg', :group => [:production] 

does mean using pg production though yml saved .sqlite3?

heroku doesn't allow use of sqlite3 in production.

https://devcenter.heroku.com/articles/sqlite3

you have switch pg.

check database connection with:

activerecord::base.connection.current_database 

and adapter used:

activerecord::base.connection.adapter_name 

Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -