Conversation
0d0870b to
0a7c7fc
Compare
|
@JuanVqz I can confirm that by following your steps above I was able to boot our app into Rails 4.2 (which is our Gemfile.next version) on heroku. |
|
@stoem, awesome! anything you find please feel free to report it. |
|
@JuanVqz Could you briefly explain what the issue was and how you've solved it? Note I am not clued up on buildpacks. |
|
@stoem sure! The issue was that somehow after the Therefore, we decided that a better solution would be to implement the |
|
@JuanVqz Ah right, thanks for the info. |
Closes #1
0a7c7fc to
fccc116
Compare
Closes #1
We can run the next Rails version in Heroku
IMPORTANT NOTES:
How are we going to manage this change in the long term? When the people at Heroku release new changes we are going to miss them out, is it better to keep our changes in a branch and rebase their changes as time passes? For sure, it would be better if we propose these changes to the official build pack and get merged 🤞
Switching between the current and next Rails versions in the same Heroku instance is not straightforward, we should run a purge or clean command to remove previously used gems and not fall on an issue. But why do we need to switch between them? is that our main reason for supporting Gemfile.next? I don't think so.
Even without these changes some tests were failing locally, it might be because of a misconfiguration, I wonder if we should make those tests pass and add more tests with the new implementation.
QA NOTES:
Select a project that already has the dual-boot configured and running.
In Heroku, go to the settings

Remove the official
heroku/rubybuild pack and include our build packhttps://github.com/fastruby/heroku-buildpack-ruby#add_gemfile_next_supportNotice that right now we are using this branch to test the changes.
BUNDLE_GEMFILEas a key andGemfile.nextas a value, then click add.Make sure Heroku picks the value you set in the config vars sometimes this takes some time.
heroku run bash --app your_app_nameto get into the bash in Heroku.then run the
rails --version,rails console,echo $BUNDLE_GEMFILEor any other command that helps you know you are using the next Rails version.