Heroku rejecting push in mature application (pre-receive hook declined)

后端 未结 5 1071
时光取名叫无心
时光取名叫无心 2021-02-06 12:58

I\'m getting

   FAILED: http://devcenter.heroku.com/articles/bundler

! Heroku push rejected, failed to install gems via Bundler To git@hero

5条回答
  •  一个人的身影
    2021-02-06 13:46

    You have modified your Gemfile in development but did not check
    the resulting snapshot (Gemfile.lock) into version control
    

    This means that you have added gems to you gemfile but have not updated to. The Gemfile.lock is out of sync with this file.

    You need to update your bundle.

    Run this command in console in your app's directory: bundle

    Then do git push heroku

    And you should be good to go.

    **Nuke the app and start over.

    gem install taps #install taps
    heroku db:pull   #pull your data to your local machine
    
    rm -rf .git #remove your git repo 
    git init    #create a new repo
    git add .   #add all the files
    git commit -m 'master' #commit as master
    
    heroku create #create a new heroku app
    heroku rename myapp #rename the app
    git push heroku master #push to heroku
    
    heroku db:push #push your data to heroku
    

    And that should get a new app up.

提交回复
热议问题