【发布时间】:2014-01-23 00:43:16
【问题描述】:
我正在尝试将我的 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
关于如何解决这个问题的任何想法?非常感谢任何帮助!
【问题讨论】:
-
强烈建议您使用与生产相同的数据库进行开发。请参阅这篇文章(注意底部还有关于 sqlite 错误的注释,即使它不在 gemfile 中):devcenter.heroku.com/articles/sqlite3
-
尝试向您的 Rails 项目询问
production模式的依赖项列表。看看你使用的其他 gem 是否可能间接使用 SQLite。 -
错字,
development,不是devlopment
标签: ruby-on-rails heroku