ruby-on-rails - 在 AWS 中使用 Cloud9 时未找到 ID 为主要的连接池/Gem::LoadError (sqlite3)
问题描述
我刚刚开始使用 AWS cloud9 ( Rails v.5.0.0, Ruby v.2.6.3, ActiveRecord v.5.0.7.2
) 构建一个新的 rails 应用程序。我已经设置了项目目录,但是当我尝试运行服务器时,我得到了No connection pool with id primary found
我的终端中也出现此错误:Gem::LoadError (Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).)
这是我尝试过的
- 在 gem 文件 (
gem 'sqlite3', '~> 1.3.11'
) 和 bundle install 中指定 sqlite3 的版本。 - 进入块
gem 'sqlite3', '~> 1.3.11'
和:development, :test
捆绑安装。 - 重新安装 sqlite3 gem 并重复上述操作。
有没有其他人遇到过这个问题?
先感谢您。
解决方案
推荐阅读
- angular9 - 升级到angular 9时的three.js错误
- jenkins - 在 groovy 中创建命名步骤
- python - Python有条件地记录到不同的目的地
- .net-core - 在始终使用加密和弹性规模的 .netcore 应用程序上迁移
- amazon-web-services - 秘密经理轮换缓存吗?
- c++ - 非零 降低成本:下限或上限是否有效?
- ios - 使用 UIGestureDetector 检测用户与视图的交互
- reactjs - 如何使用 Firebase 的 GUI 从 Firebase 存储中获取图像?
- sql - 在 postgres 中提取独特的结果并降低星型模式的成本
- c++ - 几个按钮的 fltk 回调函数