Heroku-18: Git push fails. Showing different versions of Ruby on push

前端 未结 3 1352
南方客
南方客 2021-01-25 07:10

My apologies if this is a dumb question. I am not familiar with anything about Ruby. Also tried several solutions from SO. Managed to upgrade Ruby, resolve dependencies. Now jus

相关标签:
3条回答
  • 2021-01-25 07:40

    It seems to me that you have locked the Ruby version. That's why it keeps trying to install Ruby 2.2.2. By default it should just pick a stable Ruby version.

    Look into your Gemfile for a ruby entry. There it should say 2.2.2. Either remove it or lock the version to 2.5.7.

    0 讨论(0)
  • 2021-01-25 07:48

    you have two apps in your remote that is currently referenced by your git.
    just specify the app name in your push command.

    git push ... --app appname-heroku18
    
    0 讨论(0)
  • 2021-01-25 07:49

    -> git push heroku master #I run this in my app and I got the error message for the app. I check the "config" file under the "./git/" It IS showing 2 Apps:

    [remote "origin"]
        url = https://git.heroku.com/yinow.git
        fetch = +refs/heads/*:refs/remotes/origin/*
    # [remote "heroku"]
    #   url = https://git.heroku.com/yinow.git
    #   fetch = +refs/heads/*:refs/remotes/heroku/***
    

    I comment out the "heroku" part as above, and run the push command again like this:

    -> git push origin master

    and the problem gone!

    0 讨论(0)
提交回复
热议问题