title: Error pushing simple rails project to heroku, push rejected
body: <p>I am following a tutorial at <a href="https://www.railstutorial.org/book" rel="nofollow noreferrer">https://www.railstutorial.org/book</a>. We make a very simple &quot;hello world&quot; application then at the end of the first chapter we push it to heroku. The app runs fine locally but I get a bunch of errors when trying to push it to heroku.
  There is a warning about improperly formatted binstubs, errors about not being able to detect rake tasks, failed compilation, and a warning about the same version of code already being built. This is pretty much my first rails project and the first time deploying heroku so a lot of these errors make absolutely zero sense to me and i'm not sure what is breaking it.</p>
  <pre><code>&gt; root@localhost:~/environment/hello_app# git push heroku main
  &gt; Enumerating objects: 146, done. Counting objects: 100% (146/146),
  &gt; done. Delta compression using up to 8 threads Compressing objects:
  &gt; 100% (127/127), done. Writing objects: 100% (146/146), 110.94 KiB |
  &gt; 1.98 MiB/s, done. Total 146 (delta 30), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: 
  &gt; remote: -----&gt; Building on the Heroku-20 stack remote:  !     Warning:
  &gt; Multiple default buildpacks reported the ability to handle this app.
  &gt; The first buildpack in the list below will be used. remote:
  &gt;           Detected buildpacks: Ruby,Node.js remote:           See
  &gt; https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
  &gt; remote: -----&gt; Ruby app detected remote: -----&gt; Installing bundler
  &gt; 1.17.3 remote: -----&gt; Removing BUNDLED WITH version in the Gemfile.lock remote: -----&gt; Compiling Ruby/Rails remote:  remote:
  &gt; ###### WARNING: remote:  remote:        Improperly formatted binstubs detected in your project remote:         remote:        The following
  &gt; file(s) have appear to contain a problematic &quot;shebang&quot; line remote:   
  &gt; remote:          - bin/bundle remote:         remote:        For
  &gt; example bin/bundle has the shebang line: remote:         remote:      
  &gt; ``` remote:        #!/usr/bin/env ruby2.7 remote:        ``` remote:  
  &gt; remote:        It should be: remote:         remote:        ```
  &gt; remote:        #!/usr/bin/env ruby remote:        ``` remote:        
  &gt; remote:        A malformed shebang line may cause your program to
  &gt; crash. remote:         remote:        For more information about
  &gt; binstubs and &quot;shebang&quot; lines see: remote:         
  &gt; https://devcenter.heroku.com/articles/bad-ruby-binstub-shebang remote:
  &gt; remote: -----&gt; Using Ruby version: ruby-2.6.6 remote: -----&gt;
  &gt; Installing dependencies using bundler 1.17.3 remote:        Running:
  &gt; BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle
  &gt; BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1
  &gt; BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4 remote:    
  &gt; The dependency byebug (= 11.1.3) will be unused by any of the
  &gt; platforms Bundler is installing for. Bundler is installing for
  &gt; aarch64-linux but the dependency is only for ruby, x86-mingw32,
  &gt; x64-mingw32. To add those platforms to the bundle, run `bundle lock
  &gt; --add-platform ruby x86-mingw32 x64-mingw32`. remote:        Fetching gem metadata from https://rubygems.org/............ remote:       
  &gt; Fetching rake 13.0.3 remote:        Installing rake 13.0.3 remote:    
  &gt; Fetching concurrent-ruby 1.1.8 remote:        Fetching zeitwerk 2.4.2
  &gt; remote:        Fetching minitest 5.14.3 remote:        Installing
  &gt; minitest 5.14.3 remote:        Installing zeitwerk 2.4.2 remote:      
  &gt; Installing concurrent-ruby 1.1.8 remote:        Fetching builder 3.2.4
  &gt; remote:        Installing builder 3.2.4 remote:        Fetching erubi
  &gt; 1.10.0 remote:        Installing erubi 1.10.0 remote:        Fetching mini_portile2 2.5.0 remote:        Fetching racc 1.5.2 remote:       
  &gt; Installing mini_portile2 2.5.0 remote:        Installing racc 1.5.2
  &gt; with native extensions remote:        Fetching crass 1.0.6 remote:    
  &gt; Installing crass 1.0.6 remote:        Fetching rack 2.2.3 remote:     
  &gt; Fetching nio4r 2.5.5 remote:        Installing rack 2.2.3 remote:     
  &gt; Installing nio4r 2.5.5 with native extensions remote:        Fetching
  &gt; websocket-extensions 0.1.5 remote:        Installing
  &gt; websocket-extensions 0.1.5 remote:        Fetching mimemagic 0.3.5
  &gt; remote:        Installing mimemagic 0.3.5 remote:        Fetching
  &gt; mini_mime 1.0.2 remote:        Installing mini_mime 1.0.2 remote:     
  &gt; Fetching msgpack 1.4.2 remote:        Installing msgpack 1.4.2 with
  &gt; native extensions remote:        Using bundler 2.1.2 remote:       
  &gt; Fetching ffi 1.14.2 remote:        Installing ffi 1.14.2 with native
  &gt; extensions remote:        Fetching method_source 1.0.0 remote:       
  &gt; Installing method_source 1.0.0 remote:        Fetching pg 0.20.0
  &gt; remote:        Installing pg 0.20.0 with native extensions remote:    
  &gt; Fetching thor 1.1.0 remote:        Installing thor 1.1.0 remote:      
  &gt; Fetching tilt 2.0.10 remote:        Installing tilt 2.0.10 remote:    
  &gt; Fetching turbolinks-source 5.2.0 remote:        Installing
  &gt; turbolinks-source 5.2.0 remote:        Fetching i18n 1.8.9 remote:    
  &gt; Installing i18n 1.8.9 remote:        Fetching tzinfo 2.0.4 remote:    
  &gt; Installing tzinfo 2.0.4 remote:        Fetching rack-test 1.1.0
  &gt; remote:        Installing rack-test 1.1.0 remote:        Fetching
  &gt; rack-proxy 0.6.5 remote:        Installing rack-proxy 0.6.5 remote:   
  &gt; Fetching sprockets 4.0.2 remote:        Installing sprockets 4.0.2
  &gt; remote:        Fetching websocket-driver 0.7.3 remote:       
  &gt; Installing websocket-driver 0.7.3 with native extensions remote:      
  &gt; Fetching marcel 0.3.3 remote:        Installing marcel 0.3.3 remote:  
  &gt; Fetching mail 2.7.1 remote:        Installing mail 2.7.1 remote:      
  &gt; Fetching nokogiri 1.11.1 (x86_64-linux) remote:        Installing
  &gt; nokogiri 1.11.1 (x86_64-linux) remote:        Fetching puma 5.0.4
  &gt; remote:        Installing puma 5.0.4 with native extensions remote:   
  &gt; Fetching bootsnap 1.4.6 remote:        Installing bootsnap 1.4.6 with
  &gt; native extensions remote:        Fetching turbolinks 5.2.1 remote:    
  &gt; Installing turbolinks 5.2.1 remote:        Fetching activesupport
  &gt; 6.1.0 remote:        Installing activesupport 6.1.0 remote:        Fetching sassc 2.4.0 remote:        Installing sassc 2.4.0 with native
  &gt; extensions remote:        Fetching loofah 2.9.0 remote:       
  &gt; Installing loofah 2.9.0 remote:        Fetching rails-dom-testing
  &gt; 2.0.3 remote:        Installing rails-dom-testing 2.0.3 remote:        Fetching globalid 0.4.2 remote:        Installing globalid 0.4.2
  &gt; remote:        Fetching activemodel 6.1.0 remote:        Installing
  &gt; activemodel 6.1.0 remote:        Fetching jbuilder 2.10.0 remote:     
  &gt; Installing jbuilder 2.10.0 remote:        Fetching
  &gt; rails-html-sanitizer 1.3.0 remote:        Installing
  &gt; rails-html-sanitizer 1.3.0 remote:        Fetching activejob 6.1.0
  &gt; remote:        Installing activejob 6.1.0 remote:        Fetching
  &gt; activerecord 6.1.0 remote:        Installing activerecord 6.1.0
  &gt; remote:        Fetching actionview 6.1.0 remote:        Installing
  &gt; actionview 6.1.0 remote:        Fetching actionpack 6.1.0 remote:     
  &gt; Installing actionpack 6.1.0 remote:        Fetching actioncable 6.1.0
  &gt; remote:        Fetching activestorage 6.1.0 remote:        Installing
  &gt; actioncable 6.1.0 remote:        Installing activestorage 6.1.0
  &gt; remote:        Fetching actionmailer 6.1.0 remote:        Installing
  &gt; actionmailer 6.1.0 remote:        Fetching railties 6.1.0 remote:     
  &gt; Fetching sprockets-rails 3.2.2 remote:        Installing railties
  &gt; 6.1.0 remote:        Installing sprockets-rails 3.2.2 remote:        Fetching actionmailbox 6.1.0 remote:        Installing actionmailbox
  &gt; 6.1.0 remote:        Fetching actiontext 6.1.0 remote:        Installing actiontext 6.1.0 remote:        Fetching rails 6.1.0
  &gt; remote:        Fetching webpacker 4.2.2 remote:        Installing
  &gt; rails 6.1.0 remote:        Installing webpacker 4.2.2 remote:       
  &gt; Fetching sassc-rails 2.1.2 remote:        Installing sassc-rails 2.1.2
  &gt; remote:        Fetching sass-rails 6.0.0 remote:        Installing
  &gt; sass-rails 6.0.0 remote:        Bundle complete! 17 Gemfile
  &gt; dependencies, 57 gems now installed. remote:        Gems in the groups
  &gt; development and test were not installed. remote:        Bundled gems
  &gt; are installed into `./vendor/bundle` remote:        Bundle completed
  &gt; (254.77s) remote:        Cleaning up the bundler cache. remote: -----&gt;
  &gt; Installing node-v12.16.2-linux-x64 remote: -----&gt; Installing
  &gt; yarn-v1.22.4 remote: -----&gt; Detecting rake tasks remote:  remote:  !
  &gt; remote:  !     Could not detect rake tasks remote:  !     ensure you
  &gt; can run `$ bundle exec rake -P` against your app remote:  !     and
  &gt; using the production group of your Gemfile. remote:  !    
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:91:in
  &gt; `block in materialize': Could not find rake-13.0.3 in any of the
  &gt; sources (Bundler::GemNotFound) remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in
  &gt; `map!' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in
  &gt; `materialize' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:170:in
  &gt; `specs' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:237:in
  &gt; `specs_for' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:226:in
  &gt; `requested_specs' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:108:in
  &gt; `block in definition_method' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:20:in
  &gt; `setup' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:107:in
  &gt; `setup' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/setup.rb:20:in
  &gt; `&lt;top (required)&gt;' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/ruby-2.6.6/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
  &gt; `require' remote:  !     from
  &gt; /tmp/build_e4e63d0f/vendor/ruby-2.6.6/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
  &gt; `require' remote:  !     from /tmp/build_e4e63d0f/config/boot.rb:3:in
  &gt; `&lt;top (required)&gt;' remote:  !     from
  &gt; /tmp/build_e4e63d0f/bin/rake:3:in `require_relative' remote:  !    
  &gt; from /tmp/build_e4e63d0f/bin/rake:3:in `&lt;main&gt;' remote:  ! remote:
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/helpers/rake_runner.rb:106:in
  &gt; `load_rake_tasks!': Could not detect rake tasks
  &gt; (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError) remote:
  &gt; ensure you can run `$ bundle exec rake -P` against your app remote:
  &gt; and using the production group of your Gemfile. remote:
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:91:in
  &gt; `block in materialize': Could not find rake-13.0.3 in any of the
  &gt; sources (Bundler::GemNotFound) remote:    from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in
  &gt; `map!' remote:    from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/spec_set.rb:85:in
  &gt; `materialize' remote:     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:170:in
  &gt; `specs' remote:   from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:237:in
  &gt; `specs_for' remote:   from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/definition.rb:226:in
  &gt; `requested_specs' remote:     from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:108:in
  &gt; `block in definition_method' remote:  from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:20:in
  &gt; `setup' remote:   from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:107:in
  &gt; `setup' remote:   from
  &gt; /tmp/build_e4e63d0f/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/setup.rb:20:in
  &gt; `&lt;top (required)&gt;' remote:    from
  &gt; /tmp/build_e4e63d0f/vendor/ruby-2.6.6/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
  &gt; `require' remote:     from
  &gt; /tmp/build_e4e63d0f/vendor/ruby-2.6.6/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in
  &gt; `require' remote:     from /tmp/build_e4e63d0f/config/boot.rb:3:in `&lt;top
  &gt; (required)&gt;' remote:  from /tmp/build_e4e63d0f/bin/rake:3:in
  &gt; `require_relative' remote:    from /tmp/build_e4e63d0f/bin/rake:3:in
  &gt; `&lt;main&gt;' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1106:in
  &gt; `rake' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:78:in
  &gt; `block (2 levels) in run_assets_precompile_rake_task' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in
  &gt; `log' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:72:in
  &gt; `block in run_assets_precompile_rake_task' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:71:in
  &gt; `run_assets_precompile_rake_task' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:116:in
  &gt; `block (2 levels) in compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1127:in
  &gt; `allow_git' remote:   from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:109:in
  &gt; `block in compile' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:94:in
  &gt; `compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:62:in
  &gt; `block in compile' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:60:in
  &gt; `compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:42:in
  &gt; `block in compile' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:41:in
  &gt; `compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:35:in
  &gt; `block in compile' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:34:in
  &gt; `compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:20:in
  &gt; `block in compile' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:18:in
  &gt; `compile' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:20:in
  &gt; `block (2 levels) in &lt;main&gt;' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in
  &gt; `log' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:19:in
  &gt; `block in &lt;main&gt;' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in
  &gt; `block in trace' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in
  &gt; `block (2 levels) in instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in
  &gt; `yield_with_block_depth' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in
  &gt; `block in instrument' remote:     from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in
  &gt; `realtime' remote:    from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in
  &gt; `instrument' remote:  from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in
  &gt; `trace' remote:   from
  &gt; /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:15:in
  &gt; `&lt;main&gt;' remote:  !     Push rejected, failed to compile Ruby app.
  &gt; remote:  remote:  !     Push failed remote:  ! remote:  ! ## Warning -
  &gt; The same version of this code has already been built:
  &gt; d3c258ea1dbc2f62936807e7363562fb7f66e9de remote:  ! remote:  ! We have
  &gt; detected that you have triggered a build from source code with version
  &gt; d3c258ea1dbc2f62936807e7363562fb7f66e9de remote:  ! at least twice.
  &gt; One common cause of this behavior is attempting to deploy code from a
  &gt; different branch. remote:  ! remote:  ! If you are developing on a
  &gt; branch and deploying via git you must run: remote:  ! remote:  !    
  &gt; git push heroku &lt;branchname&gt;:main remote:  ! remote:  ! This article
  &gt; goes into details on the behavior: remote:  !  
  &gt; https://devcenter.heroku.com/articles/duplicate-build-version remote: 
  &gt; remote: Verifying deploy... remote:  remote: !    Push rejected to
  &gt; floating-ocean-22006. remote:  To
  &gt; https://git.heroku.com/floating-ocean-22006.git  ! [remote rejected]
  &gt; main -&gt; main (pre-receive hook declined) error: failed to push some
  &gt; refs to 'https://git.heroku.com/floating-ocean-22006.git'
  </code></pre>