问题描述
我试图将我的 rails 应用程序推送到 heroku 并收到如下错误:
I was trying to push my rails app to heroku and received errors as below:
-
==========================================
=========================================
我的 GemFile 如下:
My GemFile as below:
==========================================
=======================================
==========================================
=======================================
我尝试了几乎所有在线提供的解决方案,但仍然没有运气.任何帮助将不胜感激.
I tried almost all the solutions provided online, but still no luck. Any help will be greatly appreciated.
推荐答案
我没有在上面的代码中看到它,但我猜你可能在你的顶部有你的 gem 'sqlite3'
gemfile,所以它被用于所有环境.Heroku 不支持 Sqlite,因此它已被排除在生产组之外.尝试以下操作,以便您可以使用 sqlite 进行开发和测试,然后在 Heroku 上使用 pg.
I don't see it in your code above, but guessing you probably have your gem 'sqlite3'
at the top of your gemfile, so it is being used in all environments. Sqlite is not supported on Heroku so it has be kept out of the production group. Try the following so that you can use sqlite for development and testing and then pg on Heroku.
这篇关于安装sqlite3时出现push rails app to Heroku报错,Bundler无法继续的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!