Unable to update gems on production server

Viewed 22968

Can not update gems on production server.

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

But keep getting:

You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze 
by running `bundle install --no-deployment

EDIT

I don't know if this is correct, but needed a quick fix. I ran bundle install --no-deployment then bundle update then ran bundle install --deployment again

7 Answers
Related