Unable to update gems on production server

后端 未结 7 1653
攒了一身酷
攒了一身酷 2021-01-31 03:17

Can not update gems on production server.

I\'ve tried bundle install --deployment and bundle install --without development test

But kee

7条回答
  •  无人及你
    2021-01-31 03:49

    FYI: You can also get this error if you use source blocks like this:

    source 'https://rails-assets.org' do
      gem 'rails-assets-jquery'
    end
    

    You'll see an exclamation point in the Gemfile.lock for this gem:

      rails-assets-jquery!
    

    Just define the additional source normally, i.e.

    source 'https://rails-assets.org'
    gem 'rails-assets-jquery'
    

    (BTW cf. here about using multiple gem sources.)

提交回复
热议问题