通过做这个:
bundle exec heroku db:push
我懂了:
! 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
这是我的 database.yml 文件:
development:
adapter: mysql2
encoding: utf8
database: g_dev
pool: 5
username: root
password:
最佳答案
我调试了一下。
我需要将 gem 'sqlite3' 放在 gemfile 中。
由于 cli.rb 中的第 10 行(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'
它在水龙头源代码中...... :(我别无选择
关于ruby-on-rails - "heroku db:push"给了我 : "Taps Load Error: no such file to load -- sqlite3...",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10723651/