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

App won't compile in Heroku - Default #285

Open
kcon6398 opened this issue Jun 24, 2021 · 2 comments
Open

App won't compile in Heroku - Default #285

kcon6398 opened this issue Jun 24, 2021 · 2 comments

Comments

@kcon6398
Copy link

I get the following fatal compile error when attempting to deploy straight from Github to Heroku:

! The Ruby version you are trying to install does not exist on this stack.
!
! You are trying to install ruby-2.5.7 on heroku-20.

Any idea how to get around Heroku's Rails dependancies without compiling everything locally?

@hawkpf
Copy link

hawkpf commented Jun 30, 2021

I'm in the same boat. The problem you're referencing is heroku has moved past old versions of ruby. If you want to force heroku to use the stack 18 follow this link. https://devcenter.heroku.com/articles/heroku-18-stack. I however, want to move to heroku-20 by upgrading ruby to 2.7.3 or even 3.0.1. At this point I have 2.7.3 and all dependencies updated properly such that bundle install and bundle update fully builds.

I'm building this on Windows so I had to install ruby with devkit.
https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-2.7.3-1/rubyinstaller-devkit-2.7.3-1-x64.exe

I then did a heroku git:remote -a "appname", did a git add . to capture my changes to Gemfile and Gemfile.lock. I then did a git push heroku master to push my new code to heroku and it built on ruby 2.7.3 and on heroku stack 20.

@hawkpf
Copy link

hawkpf commented Jul 7, 2021

You can look at my Pull Request to resolve your issues: #287

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