Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby version must match what is in .ruby-version file #45

Open
StrangeWill opened this issue Apr 3, 2016 · 2 comments
Open

Ruby version must match what is in .ruby-version file #45

StrangeWill opened this issue Apr 3, 2016 · 2 comments

Comments

@StrangeWill
Copy link

Will have to look in to how Heroku uses this, it's pretty frustrating.

@t-richards
Copy link
Contributor

@StrangeWill: When you specify ruby X.Y.Z in your Gemfile, Heroku will use that specific Ruby version while building/running your application. In this particular project the .ruby-version file contains the actual version number. This is nice because it allows you to do things like this:

$ echo "2.2.4" > .ruby-version
$ git update-index --assume-unchanged .ruby-version

Now you can use your desired version of Ruby without any issues (hopefully)!

@StrangeWill
Copy link
Author

@t-richards Yeah if that's required then I'll drop it in the readme... I was just wondering if there was a less disruptive approach.

Like are there specific environment variables Heroku has that we can detect in the gem file? And only expose the Ruby version in that case?

It's pretty minor but the less work to get a pulled project working the better (IMO).

It's why I spun this up on my own Heroku instance, so I can play around and see what our options were if no one had an immediate suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants