Build a Heroku application with ruby ​​2.1.0 and rails 4.2.0 error

I am trying to create an application on Heroku, but when I try to click on Heroku, I get this error:

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote:  !
remote:  !     An error occurred while installing Ruby ruby-2.1.0
remote:  !     For supported Ruby versions see https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote:  !     Note: Only the most recent version of Ruby 2.1 is supported on Cedar-14
remote:  !     Command: 'set -o pipefail; curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/cedar-14/ruby-2.1.0.tgz -s -o - | tar zxf - ' failed unexpectedly:
remote:  !     
remote:  !     gzip: stdin: unexpected end of file
remote:  !     tar: Child returned status 1
remote:  !     tar: Error is not recoverable: exiting now
remote:  !
remote: 
remote:  !     Push rejected, failed to compile Ruby app

How to solve this?

+4
source share
2 answers

From http://news.railstutorial.org/heroku-update/

"Herokus recently announced that the Cedar-14 stack is incompatible with all but the latest version of each Ruby sequence, which means (for example) that it works with Ruby 2.1.4, but not 2.1.3. Unfortunately, that makes it incompatible with local versions of Ruby on many systems "

So it looks like you need to upgrade your Ruby to the latest version.

+2
source

Source: https://habr.com/ru/post/1570048/


All Articles