我将数据从我的开发数据库推送到Heroku有问题.我决定切换到Postgresql作为我的开发数据库,并更新了
database.yml并从gemfiles中删除了sqlite gem.
该应用程序对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没有任何运气.
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
我也运行捆绑安装和捆绑更新.
约翰