example-mobile-backend icon indicating copy to clipboard operation
example-mobile-backend copied to clipboard

Unable to deploy on Heroku

Open lammertw opened this issue 3 years ago • 4 comments

Deploying on Heroku results in the following error: Ruby ruby-2.5.3 is present on the following stacks:

Complete output:

-----> Building on the Heroku-20 stack
-----> Ruby app detected
-----> Installing bundler 1.17.3
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rack
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-20/ruby-2.5.3.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-20/ruby-2.5.3.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
 !
 !     The Ruby version you are trying to install does not exist on this stack.
 !     
 !     You are trying to install ruby-2.5.3 on heroku-20.
 !     
 !     Ruby ruby-2.5.3 is present on the following stacks:
 !     
 !     - cedar-14
 !     - heroku-16
 !     - heroku-18
 !     
 !     Heroku recommends you use the latest supported Ruby version listed here:
 !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
 !     
 !     For more information on syntax for declaring a Ruby version see:
 !     https://devcenter.heroku.com/articles/ruby-versions
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

lammertw avatar Mar 12 '21 00:03 lammertw

@lammertw are you on latest master? We added support for Heroku-20 in #100.

mshafrir-stripe avatar Mar 12 '21 15:03 mshafrir-stripe

Yes, this is from pressing the deploy button directly from the GitHub page on master

Sent from my iPhone

On 12 Mar 2021, at 09:11, Michael Shafrir @.***> wrote:

 @lammertw are you on latest master? We added support for Heroku-20 in #100.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

lammertw avatar Mar 12 '21 15:03 lammertw

I ran into this problem because I was setting up the latest (from master branch) Stripe/iOS Basic Integration example. The README.md instructs us to

  1. Head to example-mobile-backend and click "Deploy to Heroku".

But that tree/v18.1.0 doesn't have the support for Heroku-20 you mentioned. I switched to master and then was able to build successfully on Heroku.

Would it make sense for me to open a github issue for the Stripe/iOS Basic Integration example so they can update their link?

operatordevelopment avatar Mar 27 '21 20:03 operatordevelopment

Shift the branch to Heroku-20 click on Deploy-to-heroku it works like charms

Senarios avatar Dec 28 '21 13:12 Senarios