gpt4 book ai didi

ruby-on-rails - 当我推送 Heroku 时,Sqlite3 出现问题

转载 作者:行者123 更新时间:2023-11-29 14:15:35 25 4
gpt4 key购买 nike

我在将 Rails 应用程序推送到 heroku 时遇到了一些问题。

我有错误

Failed to install gems via Bundler. remote: ! Detected sqlite3 gem which is not supported on Heroku: remote: ! https://devcenter.heroku.com/articles/sqlite3

所以我确实按照链接上的说明进行操作,但是,我仍然遇到同样的错误。我试着看看其他类似的主题,但仍然没有用..

有什么想法吗?

更新这是我的 gemfile 的样子:

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'sqlite3'
end

group :production do
gem 'pg'
end

最佳答案

While easy to use, SQLite is not intended as a production grade database. Instead Heroku provides production grade PostgreSQL databases as a service.

不要在 heroku 上使用 sqlite - 确保你没有 sqlite3全局范围内的 gem 或 :production你的群Gemfile .

关于ruby-on-rails - 当我推送 Heroku 时,Sqlite3 出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49193366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com