gpt4 book ai didi

ruby-on-rails - "heroku db:push"给我 : "Taps Load Error: no such file to load -- sqlite3..."

转载 作者:行者123 更新时间:2023-12-04 05:51:57 28 4
gpt4 key购买 nike

通过这样做:

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 (taps-0.3.24) 中的第 10 行:

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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com