Heroku is not updating my code?

后端 未结 12 1204
闹比i
闹比i 2020-12-15 23:33

So I did some CSS changes on my local, ran git add ., git commit -am \"Hello\", git push heroku master, and for some reason two commmi

相关标签:
12条回答
  • 2020-12-16 00:16

    Try opening it in another browser or in incognito because it could be cached in your current browser to serve the old files.

    0 讨论(0)
  • 2020-12-16 00:20

    In my case I was forgetting to perform mvn clean install before commiting.

    0 讨论(0)
  • 2020-12-16 00:22

    Had this issue also. Changes to CSS made in Github repo were not reflected in heroku app. Hard reload of the app solved problem.

    0 讨论(0)
  • 2020-12-16 00:23

    I had this issue this morning, and I couldn't figure it out. I looked at the files on the instance, and they were correct, but the site was still serving up the old version.

    My solution, delete the instance and start over. The new instance was responding appropriately to git push, so this makes me think that there could be a deeper issue in heroku's infrastructure.

    0 讨论(0)
  • 2020-12-16 00:23
    1. Delete bundle.js
    2. run node build.js
    3. commit and git push origin master
    4. git push heroku master
    0 讨论(0)
  • 2020-12-16 00:30

    Try running 'heroku releases' and 'heroku ps' on the command line.

    heroku releases should show you which git version Heroku currently has running -- this will let you compare your local git revision to the one Heroku has, to ensure it actually received your updates.

    Next, you might want to check heroku ps, and verify your app is running as expected.

    Lastly, if all else fails, try running heroku run bash, and looking at the files Heroku has on your Dyno, if it doesn't add up -- email Heroku support!

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