簡體   English   中英

Heroku 由於可能的 Bundler 問題 (Rails 6.0) 推送失敗

[英]Heroku Push Failing Due to Possible Bundler Issues (Rails 6.0)

我剛剛將我的應用程序升級到 Rails 6.0,現在無法推送到 Heroku。

我的推送顯示此錯誤:

remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to aloop-staging.
remote: 

但是,如果我查看 Heroku 上的活動日志,它會顯示:

-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
 !
 !     Could not detect rake tasks
 !     ensure you can run `$ bundle exec rake -P` against your app
 !     and using the production group of your Gemfile.
 !     Activating bundler (2.0.2) failed:
 !     Could not find 'bundler' (2.0.2) required by your /tmp/build_c16174fa21307792629df435f91cd5ae/Gemfile.lock.
 !     To update to the latest version installed on your system, run `bundle update --bundler`.
 !     To install the missing version, run `gem install bundler:2.0.2`
 !     Checked in 'GEM_PATH=/tmp/build_c16174fa21307792629df435f91cd5ae/vendor/bundle/ruby/2.6.0', execute `gem env` for more information
 !     
 !     To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'`
 !
/app/tmp/buildpacks/19b20846a186a4065aa6710b809d0c465ff7a2235264402d06b5038f9562c56867a32c308dd2410d96108925a9f9fed74b5ef871dd6514a3a3a5485da3f442cf/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
ensure you can run `$ bundle exec rake -P` against your app
and using the production group of your Gemfile.
Activating bundler (2.0.2) failed:
Could not find 'bundler' (2.0.2) required by your /tmp/build_c16174fa21307792629df435f91cd5ae/Gemfile.lock.
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.0.2`
Checked in 'GEM_PATH=/tmp/build_c16174fa21307792629df435f91cd5ae/vendor/bundle/ruby/2.6.0', execute `gem env` for more information
To install the version of bundler this project requires, run `gem install bundler -v '2.0.2'`
    from /app/tmp/buildpacks/19b20846a186a4065aa6710b809d0c465ff7a2235264402d06b5038f9562c56867a32c308dd2410d96108925a9f9fed74b5ef871dd6514a3a3a5485da3f442cf/lib/language_pack/ruby.rb:885:in `rake'

然而,這很奇怪,因為在我的Gemfile.lock中它說:

RUBY VERSION
   ruby 2.6.3p62

BUNDLED WITH
   2.0.2

當我執行ruby -vbundler -v時,這一點得到了證實。 誰能明白為什么這個推送被拒絕了?

原來我必須更新 buildpack:

heroku buildpacks:set heroku/ruby

在此過程的后期仍然存在問題,但這似乎解決了該特定問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM