Gem::LoadError for mysql2 gem, but it's already in Gemfile

后端 未结 14 2583
醉酒成梦
醉酒成梦 2020-12-02 08:35
Gem::LoadError
Specified \'mysql2\' for database adapter, but the gem is not loaded.
Add `gem \'mysql2\'` to your Gemfile

This error occurred while

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 08:37

    Here is how I fixed this:

     bundle config
     bundle config --delete without
     bundle install --deployment --without development test postgres
    

    Credits: How do you undo bundle install --without

提交回复
热议问题