stripe / example-mobile-backend

A simple, easy-to-deploy backend that you can use to demo our example mobile apps.
MIT License
106 stars 205 forks source link

Unable to deploy on Heroku #102

Open lammertw opened 3 years ago

lammertw commented 3 years ago

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
mshafrir-stripe commented 3 years ago

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

lammertw commented 3 years ago

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.

operatordevelopment commented 3 years ago

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?

Senarios commented 2 years ago

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