I've got a Django application that is storing a large amount of data in it's models. The problem is, whenever I deploy to Heroku even if it's a small change, the remote database with the correct data gets overwritten with the local database of dummy data.
Scenario:
I have a db file my_db
which is remote. Now, when pushing to heroku, I just git add
> git commit
only the files with the changes rather than the whole project. My problem lies in the fact that, it somehow still overwrites remote database with local data.
Is there a way to prevent this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…