I have a "comments.db" file in the root of my git repo for a flask application hosted by amazon.
It works just fine on the server - when someone adds a comment to a post, the database on the server gets updated accordingly. However, any time I make a change to some other part of the application any use "git aws.push" to push those changes to the server, the database on the server gets overwritten with the database file on my local machine - so any entries that were added to server database are lost.
It also seems that if I stick "comments.db" in my gitignore, then "git aws.push" removes the database file from the server entirely.
How can I make unrelated changes to my application and push them without clobbering the database on the server?