開発データベースからHerokuにデータをプッシュする際に問題が発生していました。開発データベースとしてPostgreSQLに切り替えることにし、database.ymlを更新し、gemfilesからsqlitegemを削除しました。
アプリはPostgreSQLに対して正常に実行されますが、コマンドを実行しようとすると、次のようになります。
heroku db:push
プロジェクトにsqliteへの参照がないため、不可解なSQLiteエラーが発生します。
! Taps Load Error: cannot load such file -- 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: postgresql
encoding: unicode
database: xxxx
pool: 5
timeout: 5000
username: xxxx
password: xxxx
test:
adapter: postgresql
encoding: unicode
database: test
pool: 5
timeout: 5000
username: xx
password: xx
production:
adapter: postgresql
encoding: unicode
database: test
pool: 5
timeout: 5000
私はRVMを使用していて、運がないまま新しいgemsetを作成しました。
私もこれを試しましたが、同じSQLiteエラーが発生しました:
heroku db:push postgres://xx:xx@localhost/xx
! Taps Load Error: cannot load such file -- 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
バンドルインストールとバンドルアップデートも実行しました。
ヨハン