我不知道如何修复此错误。我已经运行了100万次捆绑安装。我的gem文件下面有以下代码,我没有从我的gem文件中删除sqlite3:
group :development do
gem 'sqlite3'
end
group :production do
gem "pg"
end
服务器日志错误:
Gem files will remain installed in /tmp/build_5072a680-186f-45ae-bc1a-355f12885b46/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.9 for inspection.
Results logged to /tmp/build_5072a680-186f-45ae-bc1a-355f12885b46/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.9/ext/sqlite3/gem_make.out
Installing rack-test 0.6.2
Installing warden 1.2.3
An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.9'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Detected sqlite3 gem which is not supported on Heroku.
! https://devcenter.heroku.com/articles/sqlite3
!
! Push rejected, failed to compile Ruby app
答案 0 :(得分:0)
试试这个: 确保在Heroku上安装PG。如果你安装了heroku工具带。打开CMD。
heroku addons:add heroku-postgresql
确保您的gem文件看起来像这样,没有空格:
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
尝试运行bundle
捆绑安装 - 部署