Giter Club home page Giter Club logo

Comments (9)

brunitob avatar brunitob commented on July 23, 2024 1
  1. Download repo
  2. heroku login && heroku create
  3. heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2
  4. git push heroku master

from boarding.

janpio avatar janpio commented on July 23, 2024
remote: To install the missing version, run `gem install bundler:2.0.1`

I assume you tried that?

from boarding.

JoukoTyni avatar JoukoTyni commented on July 23, 2024

Yes I tried to install locally and it does not make any difference for the old app. I tried to create a completely new one too and It fails for the https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2Ffastlane%2Fboarding&template=https%3A%2F%2Fgithub.com%2Ffastlane%2Fboarding build that is done in the cloud afaik. That clip is actually copied from that page in the link when one press the 'deploy app'

from boarding.

jhandguy avatar jhandguy commented on July 23, 2024

I'm also seeing this, it does not work when deploying on Heroku.

from boarding.

mjmaix avatar mjmaix commented on July 23, 2024

Are there workarounds? Ty

from boarding.

mjmaix avatar mjmaix commented on July 23, 2024

@brunitob great that works! Thank you.

Don't forget to add env after heroku create, :) ITC_APP_ID, ITC_USER, ITC_PASSWORD

from boarding.

KrisztinaWiseman avatar KrisztinaWiseman commented on July 23, 2024

Found this on Heroku's page (https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues):

Many people are hitting issue which is only triggered when a new Bundler version is released. It happens because of a bug in Rubygems, and can be fixed by upgrading to 2.5.5+ or 2.6.3+.

Bundler 2.0.1
1) If you are deploying with Ruby 2.6.0 then you’ll get an error when your dyno or a release phase command trys to execute a bundle command:

remote: Bundler::LockfileError: You must use Bundler 2 or greater with this lockfile.
remote:   /app/vendor/ruby-2.6.0/lib/ruby/2.6.0/bundler/lockfile_parser.rb:108:in `warn_for_outdated_bundler_version'
remote:   /app/vendor/ruby-2.6.0/lib/ruby/2.6.0/bundler/lockfile_parser.rb:95:in `initialize'
remote:   /app/vendor/ruby-2.6.0/lib/ruby/2.6.0/bundler/definition.rb:83:in `new'

This is due to the built-in bundler integration that ships with Ruby 2.6.0. This bug is fixed in 2.6.1. If you hit the above error message with bundler 2.0.1, then please upgrade your Ruby version to use 2.6.1.

2) When using binstubs to run a command instead of bundle exec the wrong version of Bundler can get activated when using Ruby 2.6.x. This bug is reported to Ruby Core and will be fixed when Ruby 2.6.3 is released.

In the short term, the workaround is to ensure all commands in the Procfile and app.json are prefaced with bundle exec. For example:

web: bundle exec bin/rails server -p $PORT -e $RAILS_ENV
worker: bundle exec sidekiq -C config/sidekiq.yml
Technically this bug was fixed with 2.6.2 but there are other bugs with that version so we recommend 2.6.3+.

3) Ruby 2.5.x does not work with Bundler 2 unless the EXACT same version of bundler is specified in the Gemfile.lock.

from boarding.

KrisztinaWiseman avatar KrisztinaWiseman commented on July 23, 2024

As per the above advice I upgraded to ruby 2.6.3 and it solved the problem.

from boarding.

rogerluan avatar rogerluan commented on July 23, 2024

Full instructions, step-by-step, are:

  1. git clone [email protected]:fastlane/boarding.git
  2. cd boarding
  3. heroku login
  4. heroku create your_app_name
  5. heroku buildpacks:set https://github.com/bundler/heroku-buildpack-bundler2
  6. heroku config:set ITC_APP_ID=your_add_id
  7. heroku config:set ITC_USER=your_itunes_connect_username
  8. heroku config:set ITC_PASSWORD=your_itunes_connect_password
  9. heroku config:set ITC_TOKEN=your_password_to_protect_boarding
  10. git push heroku master
  11. Visit https://your_app_name.herokuapp.com/ to see your site up and running

from boarding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.