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 7610445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:25:11+00:00 2026-05-31T01:25:11+00:00

This might be an obvious question but I’m having trouble googling for a best

  • 0

This might be an obvious question but I’m having trouble googling for a best practice. I’m using Rails 3.0 and Bundler.

I started developing a Rails app on my work laptop. I added gem names to my gem file and ran bundle install. When I did this I didn’t pay much attention to what version of the gems I needed, I just let Bundler install the latest versions. Everything was working fine.

I pushed this app up to Heroku and it just worked.

  1. Is Heroku using the gem versions defined in my Gemfile.lock file? Or is it fetching the latest versions using the Gemfile and installing those?

    Then I got a new laptop. So I decide to clone the git repo on that laptop as well. I installed RVM, cloned the repo from GitHub and then ran bundle install locally. The problem was that because I didn’t specify the gem versions in the Gemfile, running bundle install downloaded the latest gem versions. I made some CSS changes and pushed up to Heroku, and was surprized to find the app broken. Apparently the paperclip gem now requires some other aws gem or something or other.

    So I looked through the git logs on Gemfile.lock, found the previous working version of paperclip and put that version number in the Gemfile. Repushed to heroku and it’s working again.

  2. How do I avoid this problem from happening? Should I always be putting the gem version number in my Gemfile? Should I be vendoring my gems (which I’ve not done before, how to do it)?

  • 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-31T01:25:11+00:00Added an answer on May 31, 2026 at 1:25 am

    Question one, depends on how gems are declared into Gemfile: for example declaring gem "omniauth", will bundle last omniauth gem into heroku Gemfile.lock at deploy/compile time, while if you specify gem "omniauth", "0.3.4" you’ll get exactly “0.3.4” on Heroku.

    Vendoring is deprecated in rails >= 3.2.2

    and yes, is better to specify all your gem versions into Gemfile and when you need to update, doit one at a time by running locally bundle update omniauth after putting the new version in Gemfile …

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

Sidebar

Related Questions

This might sound like an obvious question but I can't seem to find the
This might be an obvious question. But I haven't encountered this scenario before. In
I just started using java so sorry if this question's answer is obvious. I
This might be a really stupid and obvious question, but I'm very new to
This might be a silly and obvious question, but why are list access algorithm
(This might be a obvious question but I wasn't sure what to ask Bing/Google)
This might be an obvious question. But am not able to figure it out
I'm new to JQuery so this question might be an obvious one, but I
I know this might be obvious, but bear with me my generic programming background
This might seem like a very easy question for some of you folks, but

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.