2012-05-23 31 views
3

通过这样做:“Heroku的DB:推” 给我: “丝锥加载错误:没有这样的文件来加载 - sqlite3的......”

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

我debedged在此期间 我需要将gem'sqlite3'放在gemfile中。 由于cli.rb的第10行的(抽头-0.3.24): 需要“sqlite3的” 它在水龙头的源代码... :(我别无选择 – Boti

回答

8

我放声大笑。

我需要把gem'sqlite3'放在gemfile中。

因为该行10 cli.rb(抽头-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' 

它在水龙头的源代码... :(我别无选择

0

我有这个问题,但它足以只是做:

gem install sqlite3 

,使其局部可用也就是说,你不需要使用SQLite污染你的Gemfile

。 210

(使用sudo根据您的环境。)

+0

喔...好招..谢谢:) – Boti

相关问题