git push heroku master says “Everything up-to-date”, but the app is not current

前端 未结 13 1466
孤独总比滥情好
孤独总比滥情好 2020-12-02 09:00

I have an app on Heroku that is running old code. I\'ve made a small change and committed the change. I then ran

git push heroku master

I

13条回答
  •  感动是毒
    2020-12-02 09:08

    I know, I know, silly, but it happened to me so I'm leaving a warning to others: make sure the app you're pushing to is the same app you're checking for changes.

    In my case I was pushing to staging and then running a shell on production and not understanding why the static files didn't change.

    (It started with a real issue where static files didn't change when I pushed a new version, but it was probably a one-push fluke, and it only kept me going in circles for another hour because I was testing the wrong app.)

提交回复
热议问题