How to reset Heroku app and re-commit everything?

前端 未结 9 2141
傲寒
傲寒 2020-12-07 09:57

I\'m building an application which I\'m also testing in Heroku. I ran into some problem today and had to rollback one commit in my local git repo, but Heroku now won\'t reco

9条回答
  •  一整个雨季
    2020-12-07 10:54

    Sounds weird. Maybe try pushing a different branch would do?

    git branch production
    git checkout production
    #do some code changes
    git commit -am "some desperate code changes to try fix heroku"
    git push heroku production:master
    

    Creating a new production branch is what I want you to test. Besides, it's nice to have a production branch that you can use to deploy.

    If it doesn't work, then I think the problem runs deeper and you need help from heroku.

    EDIT: Add the heroku releases addon too. Rolling back is as easy as heroku rollback

提交回复
热议问题