0

I have a Heroku-hosted Sinatra app, on which users submit data via a form. The data is saved to a JSON file local to the app. I'm using the standard

git push heroku master 

to deploy the app.

Is there a way I can prevent the loss of these user submissions by that file being accidentally overwritten by subsequent commits? I figure that as long as I don't modify the file on my end, it won't be touched by the deployment process. But is there a better way of "locking" the file?

fullstackplus
  • 1,061
  • 3
  • 17
  • 31

0 Answers0