Heroku不会在Gemfile中使用Ruby版本

时间:2016-11-02 20:57:01

标签: ruby-on-rails ruby heroku gemfile

我正在尝试在Heroku上为我正在开发的应用程序托管Canvas LMS,而且我遇到了部署它的问题。

Canvas LMS使用Ruby 2.1.6,这不是Heroku上的默认Ruby。我进入了Gemfile,添加了这一行ruby "2.1.6",当我将它部署到Heroku时,我得到了这个错误:

remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote:  !
remote:  !     An error occurred while installing Ruby Ruby-2.3-support-is-untested-ruby-2.3.1
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 -L --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.3-support-is-untested-ruby-2.3.1.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:  !     Push rejected, failed to compile Ruby app.
remote:
remote:  !     Push failed

我没有使用Ruby的经验,所以我真的不知道如何修补并解决问题。无处不在,我看起来只是将ruby "2.1.6"行添加到我的Gemfile中,但这还没有解决问题。

0 个答案:

没有答案