NameError: 未初始化的常量 Bundler Heroku

问题描述

我试图在 Heroku 上部署我的应用程序,但它一直被拒绝。我正在关注 Heroku guidelines 并尝试了 herehere 的建议,但没有成功。也老了。

Bundler version 2.2.11 就像 Heroku library configurationsruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]

该应用在本地运行良好。很久以前(也许是 3 个月)我曾经部署过它并且它有效。

Heroku 日志

-----> Building on the Heroku-20 stack
 !     Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
            Detected buildpacks: Ruby,Node.js
            See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Installing bundler 2.2.11
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.7.1
-----> Installing dependencies using bundler 2.2.11
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
       Fetching gem Metadata from https://rubygems.org/..........
       Fetching https://github.com/activerecord-hackery/ransack.git
       Fetching rake 13.0.3
       Installing rake 13.0.3
       Fetching concurrent-ruby 1.1.8
       Fetching minitest 5.14.4
       Fetching zeitwerk 2.4.2
       Fetching thread_safe 0.3.6
       Installing thread_safe 0.3.6
       Installing minitest 5.14.4
       Installing concurrent-ruby 1.1.8
       Installing zeitwerk 2.4.2
       Fetching builder 3.2.4
       Fetching erubi 1.10.0
       Installing builder 3.2.4
       Installing erubi 1.10.0
       Fetching racc 1.5.2
       Fetching crass 1.0.6
       Fetching rack 2.2.3
       Installing crass 1.0.6
       Installing rack 2.2.3
       Fetching nio4r 2.5.5
       Installing racc 1.5.2 with native extensions
       Installing nio4r 2.5.5 with native extensions
       Fetching websocket-extensions 0.1.5
       Installing websocket-extensions 0.1.5
       Fetching mimemagic 0.3.5
       Fetching mini_mime 1.0.2
       Installing mini_mime 1.0.2
       Installing mimemagic 0.3.5
       Fetching acts_as_votable 0.13.1
       Installing acts_as_votable 0.13.1
       Fetching bcrypt 3.1.16
       Installing bcrypt 3.1.16 with native extensions
       Using bundler 2.2.11
       Fetching cancancan 3.2.1
       Installing cancancan 3.2.1
       Fetching orm_adapter 0.5.0
       Installing orm_adapter 0.5.0
       Fetching method_source 1.0.0
       Installing method_source 1.0.0
       Fetching thor 1.1.0
       Installing thor 1.1.0
       Fetching ffi 1.14.2
       Installing ffi 1.14.2 with native extensions
       Fetching temple 0.8.2
       Installing temple 0.8.2
       Fetching tilt 2.0.10
       Installing tilt 2.0.10
       Fetching json 2.5.1
       Installing json 2.5.1 with native extensions
       Fetching kaminari-core 1.2.1
       Installing kaminari-core 1.2.1
       Fetching nested_form 0.3.2
       Installing nested_form 0.3.2
       Fetching paper_trail-association_tracking 2.1.1
       Installing paper_trail-association_tracking 2.1.1
       Fetching pg 1.2.3
       Installing pg 1.2.3 with native extensions
       Fetching remotipart 1.4.4
       Installing remotipart 1.4.4
       Fetching semantic_range 2.3.1
       Installing semantic_range 2.3.1
       Fetching tzinfo 1.2.9
       Installing tzinfo 1.2.9
       Fetching i18n 1.8.9
       Installing i18n 1.8.9
       Fetching rack-test 1.1.0
       Installing rack-test 1.1.0
       Fetching warden 1.2.9
       Installing warden 1.2.9
       Fetching request_store 1.5.0
       Installing request_store 1.5.0
       Fetching rack-proxy 0.6.5
       Installing rack-proxy 0.6.5
       Fetching sprockets 4.0.2
       Installing sprockets 4.0.2
       Fetching websocket-driver 0.7.3
       Installing websocket-driver 0.7.3 with native extensions
       Fetching mail 2.7.1
       Installing mail 2.7.1
       Fetching marcel 0.3.3
       Installing marcel 0.3.3
       Fetching puma 4.3.7
       Installing puma 4.3.7 with native extensions
       Fetching haml 5.2.1
       Installing haml 5.2.1
       Fetching nokogiri 1.11.1 (x86_64-linux)
       Installing nokogiri 1.11.1 (x86_64-linux)
       Fetching activesupport 6.0.3.5
       Installing activesupport 6.0.3.5
       Fetching sassc 2.4.0
       Installing sassc 2.4.0 with native extensions
       Fetching loofah 2.9.0
       Installing loofah 2.9.0
       Fetching rack-pjax 1.1.0
       Installing rack-pjax 1.1.0
       Fetching rails-dom-testing 2.0.3
       Installing rails-dom-testing 2.0.3
       Fetching globalid 0.4.2
       Installing globalid 0.4.2
       Fetching activemodel 6.0.3.5
       Installing activemodel 6.0.3.5
       Fetching jbuilder 2.11.2
       Installing jbuilder 2.11.2
       Fetching rails-html-sanitizer 1.3.0
       Installing rails-html-sanitizer 1.3.0
       Fetching activejob 6.0.3.5
       Installing activejob 6.0.3.5
       Fetching activerecord 6.0.3.5
       Installing activerecord 6.0.3.5
       Fetching activemodel-serializers-xml 1.0.2
       Installing activemodel-serializers-xml 1.0.2
       Fetching actionview 6.0.3.5
       Installing actionview 6.0.3.5
       Fetching friendly_id 5.4.2
       Installing friendly_id 5.4.2
       Fetching kaminari-activerecord 1.2.1
       Installing kaminari-activerecord 1.2.1
       Fetching paper_trail 11.1.0
       Installing paper_trail 11.1.0
       Using ransack 2.4.2 from https://github.com/activerecord-hackery/ransack.git (at master@15b2dc6)
       Fetching actionpack 6.0.3.5
       Installing actionpack 6.0.3.5
       Fetching kaminari-actionview 1.2.1
       Installing kaminari-actionview 1.2.1
       Fetching actioncable 6.0.3.5
       Installing actioncable 6.0.3.5
       Fetching activestorage 6.0.3.5
       Installing activestorage 6.0.3.5
       Fetching actionmailer 6.0.3.5
       Installing actionmailer 6.0.3.5
       Fetching railties 6.0.3.5
       Installing railties 6.0.3.5
       Fetching sprockets-rails 3.2.2
       Installing sprockets-rails 3.2.2
       Fetching kaminari 1.2.1
       Installing kaminari 1.2.1
       Fetching actionmailBox 6.0.3.5
       Installing actionmailBox 6.0.3.5
       Fetching actiontext 6.0.3.5
       Installing actiontext 6.0.3.5
       Fetching responders 3.0.1
       Installing responders 3.0.1
       Fetching jquery-rails 4.4.0
       Installing jquery-rails 4.4.0
       Fetching jquery-ui-rails 6.0.1
       Installing jquery-ui-rails 6.0.1
       Fetching webpacker 5.2.1
       Installing webpacker 5.2.1
       Fetching rails 6.0.3.5
       Installing rails 6.0.3.5
       Fetching devise 4.7.3
       Installing devise 4.7.3
       Fetching sassc-rails 2.1.2
       Installing sassc-rails 2.1.2
       Fetching rails_admin 2.1.0
       Fetching sass-rails 6.0.0
       Installing sass-rails 6.0.0
       Fetching recaptcha 5.7.0
       Installing recaptcha 5.7.0
       Installing rails_admin 2.1.0
       Bundle complete! 25 Gemfile dependencies,81 gems Now installed.
       Gems in the groups development and test were not installed.
       Bundled gems are installed into `./vendor/bundle`
       Bundle completed (260.56s)
       Cleaning up the bundler cache.
-----> Installing node-v12.16.2-linux-x64
-----> Installing yarn-v1.22.4
-----> 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.
 !     rake aborted!
 !     NameError: uninitialized constant Bundler
 !     /tmp/build_c54be191/config/application.rb:7:in `<top (required)>'
 !     /tmp/build_c54be191/Rakefile:4:in `require_relative'
 !     /tmp/build_c54be191/Rakefile:4:in `<top (required)>'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load_rakefile'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:703:in `raw_load_rakefile'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:104:in `block in load_rakefile'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:103:in `load_rakefile'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:82:in `block in run'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
 !     /tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
 !     /tmp/build_c54be191/bin/rake:4:in `<main>'
 !
/tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/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.
rake aborted!
NameError: uninitialized constant Bundler
/tmp/build_c54be191/config/application.rb:7:in `<top (required)>'
/tmp/build_c54be191/Rakefile:4:in `require_relative'
/tmp/build_c54be191/Rakefile:4:in `<top (required)>'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load_rakefile'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:703:in `raw_load_rakefile'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:104:in `block in load_rakefile'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:103:in `load_rakefile'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:82:in `block in run'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_c54be191/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/tmp/build_c54be191/bin/rake:4:in `<main>'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1030:in `rake'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:78:in `block (2 levels) in run_assets_precompile_rake_task'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in `log'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:72:in `block in run_assets_precompile_rake_task'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:71:in `run_assets_precompile_rake_task'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:112:in `block (2 levels) in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1051:in `allow_git'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:105:in `block in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:91:in `compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:62:in `block in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:60:in `compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:42:in `block in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:41:in `compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:35:in `block in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:34:in `compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:20:in `block in compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:18:in `compile'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:20:in `block (2 levels) in <main>'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in `log'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:19:in `block in <main>'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in `block in trace'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in `trace'
    from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:15:in `<main>'
 !     Push rejected,Failed to compile Ruby app.
 !     Push Failed

出现在本地控制台但不在 heroku 日志中,但我只有一个分支/存储库

    Push Failed
remote:  !
remote:  ! ## Warning - The same version of this code has already been built: 51055c05448a223e25c70f9f3e0ec48e06b15171
remote:  !
remote:  ! We have detected that you have triggered a build from source code with version 51055c05448a223e25c70f9f3e0ec48e06b15171
remote:  ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
remote:  !
remote:  ! If you are developing on a branch and deploying via git you must run:
remote:  !
remote:  !     git push heroku <branchname>:main
remote:  !
remote:  ! This article goes into details on the behavior:
remote:  !   https://devcenter.heroku.com/articles/duplicate-build-version
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to stark-mountain-24952.

Gemfile.lock

GIT
  remote: https://github.com/activerecord-hackery/ransack.git
  revision: 15b2dc6b5c9137cd9cbf2509ce309fe142ff004d
  specs:
    ransack (2.4.2)
      activerecord (>= 5.2.4)
      activesupport (>= 5.2.4)
      i18n

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (6.0.3.5)
      actionpack (= 6.0.3.5)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailBox (6.0.3.5)
      actionpack (= 6.0.3.5)
      activejob (= 6.0.3.5)
      activerecord (= 6.0.3.5)
      activestorage (= 6.0.3.5)
      activesupport (= 6.0.3.5)
      mail (>= 2.7.1)
    actionmailer (6.0.3.5)
      actionpack (= 6.0.3.5)
      actionview (= 6.0.3.5)
      activejob (= 6.0.3.5)
      mail (~> 2.5,>= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.0.3.5)
      actionview (= 6.0.3.5)
      activesupport (= 6.0.3.5)
      rack (~> 2.0,>= 2.0.8)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0,>= 1.2.0)
    actiontext (6.0.3.5)
      actionpack (= 6.0.3.5)
      activerecord (= 6.0.3.5)
      activestorage (= 6.0.3.5)
      activesupport (= 6.0.3.5)
      nokogiri (>= 1.8.5)
    actionview (6.0.3.5)
      activesupport (= 6.0.3.5)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1,>= 1.2.0)
    activejob (6.0.3.5)
      activesupport (= 6.0.3.5)
      globalid (>= 0.3.6)
    activemodel (6.0.3.5)
      activesupport (= 6.0.3.5)
    activemodel-serializers-xml (1.0.2)
      activemodel (> 5.x)
      activesupport (> 5.x)
      builder (~> 3.1)
    activerecord (6.0.3.5)
      activemodel (= 6.0.3.5)
      activesupport (= 6.0.3.5)
    activestorage (6.0.3.5)
      actionpack (= 6.0.3.5)
      activejob (= 6.0.3.5)
      activerecord (= 6.0.3.5)
      marcel (~> 0.3.1)
    activesupport (6.0.3.5)
      concurrent-ruby (~> 1.0,>= 1.0.2)
      i18n (>= 0.7,< 2)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
      zeitwerk (~> 2.2,>= 2.2.2)
    acts_as_votable (0.13.1)
    addressable (2.7.0)
      public_suffix (>= 2.0.2,< 5.0)
    bcrypt (3.1.16)
    bindex (0.8.1)
    builder (3.2.4)
    byebug (11.1.3)
    cancancan (3.2.1)
    capybara (3.35.3)
      addressable
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.8)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (>= 1.5,< 3.0)
      xpath (~> 3.2)
    childprocess (3.0.0)
    concurrent-ruby (1.1.8)
    crass (1.0.6)
    devise (4.7.3)
      bcrypt (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 4.1.0)
      responders
      warden (~> 1.2.3)
    erubi (1.10.0)
    faker (2.16.0)
      i18n (>= 1.6,< 2)
    ffi (1.14.2)
    friendly_id (5.4.2)
      activerecord (>= 4.0.0)
    globalid (0.4.2)
      activesupport (>= 4.2.0)
    haml (5.2.1)
      temple (>= 0.8.0)
      tilt
    i18n (1.8.9)
      concurrent-ruby (~> 1.0)
    jbuilder (2.11.2)
      activesupport (>= 5.0.0)
    jquery-rails (4.4.0)
      rails-dom-testing (>= 1,< 3)
      railties (>= 4.2.0)
      thor (>= 0.14,< 2.0)
    jquery-ui-rails (6.0.1)
      railties (>= 3.2.16)
    json (2.5.1)
    kaminari (1.2.1)
      activesupport (>= 4.1.0)
      kaminari-actionview (= 1.2.1)
      kaminari-activerecord (= 1.2.1)
      kaminari-core (= 1.2.1)
    kaminari-actionview (1.2.1)
      actionview
      kaminari-core (= 1.2.1)
    kaminari-activerecord (1.2.1)
      activerecord
      kaminari-core (= 1.2.1)
    kaminari-core (1.2.1)
    listen (3.4.1)
      rb-fsevent (~> 0.10,>= 0.10.3)
      rb-inotify (~> 0.9,>= 0.9.10)
    loofah (2.9.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    mail (2.7.1)
      mini_mime (>= 0.1.1)
    marcel (0.3.3)
      mimemagic (~> 0.3.2)
    method_source (1.0.0)
    mimemagic (0.3.5)
    mini_mime (1.0.2)
    minitest (5.14.4)
    nested_form (0.3.2)
    nio4r (2.5.5)
    nokogiri (1.11.1-x86_64-darwin)
      racc (~> 1.4)
    nokogiri (1.11.1-x86_64-linux)
      racc (~> 1.4)
    orm_adapter (0.5.0)
    paper_trail (11.1.0)
      activerecord (>= 5.2)
      request_store (~> 1.1)
    paper_trail-association_tracking (2.1.1)
    pg (1.2.3)
    public_suffix (4.0.6)
    puma (4.3.7)
      nio4r (~> 2.0)
    racc (1.5.2)
    rack (2.2.3)
    rack-pjax (1.1.0)
      nokogiri (~> 1.5)
      rack (>= 1.1)
    rack-proxy (0.6.5)
      rack
    rack-test (1.1.0)
      rack (>= 1.0,< 3)
    rails (6.0.3.5)
      actioncable (= 6.0.3.5)
      actionmailBox (= 6.0.3.5)
      actionmailer (= 6.0.3.5)
      actionpack (= 6.0.3.5)
      actiontext (= 6.0.3.5)
      actionview (= 6.0.3.5)
      activejob (= 6.0.3.5)
      activemodel (= 6.0.3.5)
      activerecord (= 6.0.3.5)
      activestorage (= 6.0.3.5)
      activesupport (= 6.0.3.5)
      bundler (>= 1.3.0)
      railties (= 6.0.3.5)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.3.0)
      loofah (~> 2.3)
    rails_admin (2.1.0)
      activemodel-serializers-xml (>= 1.0)
      builder (~> 3.1)
      haml (>= 4.0,< 6)
      jquery-rails (>= 3.0,< 5)
      jquery-ui-rails (>= 5.0,< 7)
      kaminari (>= 0.14,< 2.0)
      nested_form (~> 0.3)
      rack-pjax (>= 0.7)
      rails (>= 5.0,< 7)
      remotipart (~> 1.3)
      sassc-rails (>= 1.3,< 3)
    railties (6.0.3.5)
      actionpack (= 6.0.3.5)
      activesupport (= 6.0.3.5)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.20.3,< 2.0)
    rake (13.0.3)
    rb-fsevent (0.10.4)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    recaptcha (5.7.0)
      json
    regexp_parser (2.1.1)
    remotipart (1.4.4)
    request_store (1.5.0)
      rack (>= 1.4)
    responders (3.0.1)
      actionpack (>= 5.0)
      railties (>= 5.0)
    rubyzip (2.3.0)
    sass-rails (6.0.0)
      sassc-rails (~> 2.1,>= 2.1.1)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    selenium-webdriver (3.142.7)
      childprocess (>= 0.5,< 4.0)
      rubyzip (>= 1.2.2)
    semantic_range (2.3.1)
    spring (2.1.1)
    spring-watcher-listen (2.0.1)
      listen (>= 2.7,< 4.0)
      spring (>= 1.2,< 3.0)
    sprockets (4.0.2)
      concurrent-ruby (~> 1.0)
      rack (> 1,< 3)
    sprockets-rails (3.2.2)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    temple (0.8.2)
    thor (1.1.0)
    thread_safe (0.3.6)
    tilt (2.0.10)
    tzinfo (1.2.9)
      thread_safe (~> 0.1)
    warden (1.2.9)
      rack (>= 2.0.9)
    web-console (4.1.0)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    webdrivers (4.6.0)
      nokogiri (~> 1.6)
      rubyzip (>= 1.3.0)
      selenium-webdriver (>= 3.0,< 4.0)
    webpacker (5.2.1)
      activesupport (>= 5.2)
      rack-proxy (>= 0.6.1)
      railties (>= 5.2)
      semantic_range (>= 2.3.0)
    websocket-driver (0.7.3)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.4.2)

PLATFORMS
  x86_64-darwin-19
  x86_64-linux

DEPENDENCIES
  acts_as_votable
  byebug
  cancancan
  capybara (>= 2.15)
  devise
  faker
  friendly_id (~> 5.4.0)
  jbuilder (~> 2.7)
  kaminari
  listen (~> 3.2)
  paper_trail
  paper_trail-association_tracking
  pg (>= 0.18,< 2.0)
  puma (~> 4.1)
  rails (~> 6.0.3,>= 6.0.3.3)
  rails_admin
  ransack!
  recaptcha
  sass-rails (>= 6)
  selenium-webdriver
  spring
  spring-watcher-listen (~> 2.0.0)
  web-console (>= 3.3.0)
  webdrivers
  webpacker (~> 5.2.1)

RUBY VERSION
   ruby 2.7.1p83

BUNDLED WITH
   2.2.11

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...