通过这样做:
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:
答案 0 :(得分:8)
我贬低了它。
我需要将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'
它在点击源代码...... :(我别无选择
答案 1 :(得分:0)
我遇到了这个问题,但只需这样做就足够了:
gem install sqlite3
使其在本地可用。也就是说,您不需要使用sqlite污染您的gemfile。
(根据您的环境使用sudo。)