What are the errors that occur when deploying the Rails app to Heroku?

Asked 2 years ago, Updated 2 years ago, 134 views

When you deploy the Rails app you are currently developing to Heroku,

$git push heroku master

The following error occurs:

remote:----->Ruby app detected
remote —----- > Compiling Ruby/Rails
remote :!
remote — !An error occurred while installing ruby-2.1.0-p0
remote :!
remote: !Heroku recommendations you use the latest supported Ruby version listed here: (URL)
remote :!     
remote :!
remote: !For more information on syntax for decoding a Ruby version see:
remote: !https://devcenter.heroku.com/articles/ruby-versions
remote :!
remote: !Note: Only the most recent version of Ruby 2.1 is supported on Cedar-14
remote :!
remote: !Debug InformationCommand: 'set-opipefail; curl-L --fail --retry5 --retry-delay1 --connect-timeout3 --max-time30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.1.0-p0.tgz-s-o-|tar zxf-'failed unexpected:
remote :!
remote:!gzip:stdin:unexpected end of file
remote : !tar : Child returned status 1
remote: !tar: Error is not recoverable:exiting now
remote :!
remote: !Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote —Verifying deploy...

I don't know if this is just an error caused by an older Ruby version, a corrupt tar file, or either.

Please let me know why the error is occurring and how I can successfully deploy it.Thank you for your cooperation.

The development environment is as follows.
host:macOS
guest —CentOS 6.5 (managed by Vagrant)
Ruby:2.1.0
Rails:4.1.0

ruby-on-rails ruby centos heroku

2022-09-30 21:19

1 Answers

The reason is that the Ruby version is old as you wrote.

Only the most recent version of Ruby 2.1 is supported

If you want to use the 2.1 family, please use the latest 2.1.10.

If there is no particular reason, I recommend using the latest stable version.


2022-09-30 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.