ruby-on-rails – 检测到Heroku不支持的sqlite3 gem

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 检测到Heroku不支持的sqlite3 gem前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图将我的rails应用程序推送到Heroku,并且我不断收到以下错误
An error occurred while installing sqlite3 (1.3.8),and Bundler cannot continue.
   Make sure that `gem install sqlite3 -v '1.3.8'` 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

这是我的gemfile的样子:

group :devlopment,:test do
  gem 'sqlite3'
end

group :production do
  gem 'pg'
end

关于如何解决这个问题的任何想法?任何帮助深表感谢!

解决方法

你有打字错误
group :development,:test do # <<<< :development,not devlopment
  gem 'sqlite3'
end

由于heroku忽略了开发特定的宝石,当运行该包时,它包含sqlite3 gem.

原文链接:https://www.f2er.com/ruby/266109.html

猜你在找的Ruby相关文章