0
votes

I just tried to deploy my Rails 4.1.0 app to Heroku, but I get this error:

Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded.

...

error: failed to push some refs to '[email protected]:somedomain.git'

For the moment I don't use any database in production. In my Gemfile, I made the sqlite3 gem only work for development mode like this:

gem 'sqlite3', group: :development

But this doesn't solve the issue.

Does anybody know how I can deploy my Rails 4.1.0 app to Heroku without specifying a database for production?

Thanks for your help,

Anthony

1
add config/database.yml to ur quiestion plzkirqe

1 Answers

0
votes

Its better to use pg gem for heroku.

Your config/database.yml should look this way

production:
  adapter: postgresql
  encoding: unicode
  database: appname_production
  pool: 5
  username: user
  password:

Gemfile gem 'pg'

This works for heroku in a some of my apps.