[Fixed]-Updating heroku django deployed site with new commits to github repo

1👍

When you are pushing the fresh commits git push heroku master or via git hook git push origin master — these nothing to do with heroku database.

But this will run this command when build python manage.py migrate so if you are changed something in the migrations definetly db schema get alter not the values stored in there.

0👍

Just set your remote project:

heroku git:remote -a

And then, push your project on Heroku:
git push heroku main

I’ve written an article on it. You can see that. https://medium.com/@sreebash/how-to-update-previous-deployed-project-on-heroku-c778d555cd8a

Leave a comment