Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"heroku db:push" gives me: "Taps Load Error: no such file to load -- sqlite3..."

By doing this:

bundle exec heroku db:push

I got this:

 !    Taps Load Error: no such file to load -- sqlite3
 !    You may need to install or update the taps gem to use db commands.
 !    On most systems this will be:
 !    
 !    sudo gem install taps

This is my database.yml file:

development:
  adapter: mysql2
  encoding: utf8
  database: g_dev
  pool: 5
  username: root
  password: 
like image 310
Boti Avatar asked Jan 26 '26 07:01

Boti


1 Answers

I debuged it.

I need to put gem 'sqlite3' in the gemfile.

Because of this line 10 in cli.rb (taps-0.3.24):

require 'optparse'
require 'tempfile'
require 'taps/monkey'
require 'taps/config'
require 'taps/log'
require 'vendor/okjson'

Taps::Config.taps_database_url = ENV['TAPS_DATABASE_URL'] || begin
  # this is dirty but it solves a weird problem where the tempfile disappears mid-process
  require 'sqlite3'

It's in taps source code... :( I have no choice

like image 177
Boti Avatar answered Jan 28 '26 23:01

Boti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!