2012-05-23 35 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

相關問題