I am going nuts with the feedback I keep getting anytime I tried to push my simple “hello_app” developed in rails to production (Heroku).
When I run the command $git push -u origin master
, my terminal returned this output:
Enumerating objects: 84, done.
Counting objects: 100% (84/84), done.
Delta compression using up to 4 threads
Compressing objects: 100% (70/70), done.
Writing objects: 100% (84/84), 20.10 KiB | 935.00 KiB/s, done.
Total 84 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.3.10
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-3.0.3
remote:
remote: ###### WARNING:
remote:
remote: Removing `Gemfile.lock` because it was generated on Windows.
remote: Bundler will do a full resolve so native gems are handled properly.
remote: This may result in unexpected gem versions being used in your app.
remote: In rare occasions Bundler may not be able to resolve your dependencies at all.
remote:
remote: https://devcenter.heroku.com/articles/bundler-windows-gemfile
remote:
remote: -----> Installing dependencies using bundler 2.3.10
remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin bundle install -j4
remote: Fetching gem metadata from https://rubygems.org/...........
remote: Resolving dependencies...
remote: Bundler found conflicting requirements for the Ruby Ruby
remote: puma (= 3.9.1) was resolved to 3.9.1, which depends on
remote: Ruby= 5.1.6) was resolved to 5.1.6, which depends on
remote: Ruby Bundler Output: Fetching gem metadata from https://rubygems.org/...........
remote: Resolving dependencies...
remote: Bundler found conflicting requirements for the Ruby5) was resolved to 3.1.5, which depends on
remote: Rubyto 3.9.1, which depends on
remote: Ruby on
remote: Ruby compile Ruby app.
remote:
remote: ! Push failed
remote: !
remote: ! ## Warning - The same version of this code has already been built: 516b0e333aa38520d60b08af341333d210469337
remote: !
remote: ! We have detected that you have triggered a build from source code with version 516b0e333aa38520d60b08af341333d210469337
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 young-tundra-01436.
remote:
To https://git.heroku.com/young-tundra-01436.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young-tundra-01436.git'
I’ve spent about 4 Days working on this problem but nothing is working.
I am working with Ubuntu using Windows Subsystem for Linux (WSL).
Any help will be greatly appreciated!