Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6171095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:09:20+00:00 2026-05-23T23:09:20+00:00

Can not update gems on production server. I’ve tried bundle install –deployment and bundle

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:09:21+00:00Added an answer on May 23, 2026 at 11:09 pm

    The instructions are probably a bit confusing. It’s saying that you’ve modified your Gemfile on your development machine and just pushed those changes rather than running bundle install BEFORE committing the changes.

    By running bundle install you will update your Gemfile.lock file. This should be pushed to your server as it’s more important than Gemfile. Consider the Gemfile the plans for the Gemfile.lock file.

    Always remember to:

    1. Run bundle install if you change your Gemfile, even just to make sure. If it’s too slow, pass --local through which forces it to only use local gems to resolve its dependencies.
    2. Commit both the Gemfile and Gemfile.lock file to your repository
    3. Deploy both the Gemfile and Gemfile.lock to your production servers to ensure that they’re running the exact same dependencies as your development environment.

    Running bundle update by itself can be construed as dangerous that will update all the dependencies of your application. It’s mainly dangerous if you don’t have solid version numbers specified in the Gemfile. I wrote about it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you deploy a Rails3 app using Bundler's Gemfile WITHOUT running bundle install ...
How can I update this regular expression to find and replace not just /news/
Where can I find a RSA encrypt example that does not use NoPadding? --update
When i enter bundle install I get the error '-bash: bundle: command not found'.
I'm trying to run $bundle update, but it errors after going through several gems
Why can't the data in mysql not updated when I use checkbox, I already
Can not run following SQL from ant's sql task : BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table =>
I can not distinguish the difference between aggregating and holding. What does it mean
After installing Ruby and Ruby Gems: $ sudo apt-get install ruby rubygems ... $
I've installed Connect via npm but can't access it's executable, how do I install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.