ConfusedDeveloper
ConfusedDeveloper

Reputation: 61

Heroku Rails build failing due to Bootsnap and Rake issues

I'm trying to follow along with the Rails Tutorial and can't seem to get builds working on Heroku.

My build log is here: https://pastebin.com/pBnGkBXe

Here are the errors I've tried debugging so far:

 !     Could not detect rake tasks
 !     ensure you can run `$ bundle exec rake -P` against your app
 !     and using the production group of your Gemfile.

Running bundle exec rake -P locally does work on my repository.

 !     /tmp/build_5f6ec788/config/boot.rb:4:in `require': cannot load such file -- bootsnap/setup (LoadError)
 !     from /tmp/build_5f6ec788/config/boot.rb:4:in `<top (required)>'
 !     from /tmp/build_5f6ec788/bin/rake:3:in `require_relative'
 !     from /tmp/build_5f6ec788/bin/rake:3:in `<main>'

I wasn't able to figure out what was happening here.

I tried running this with both the Rails Default Gemfile and the Rails Tutorial Gemfile and it resulted in the same Bootsnap error.

Can anyone make suggestions on how to get this Heroku deployment working?

Thank you!

Upvotes: 3

Views: 617

Answers (1)

ConfusedDeveloper
ConfusedDeveloper

Reputation: 61

Figured it out.

I was running Ruby v2.6.3. Upgrade to 2.7.2 and fixing that in the Gemfile resulted in a successful deploy to Heroku.

Upvotes: 2

Related Questions