Search code examples
herokuheroku-postgresheroku-api

I use Quick.db in my Discord bot. Every time I deploy an update the db does not save, why is this and how do I fix it?


So... I use quick.db for my Discord bot's Economy System. It's all perfectly set up however every time I deploy an another update for my Discord bot from Github, the db does not save, and everyone's stats across everyone's server reset back to 0, why is this? Someone told me that it's because Heroku doesn't save "persistent" data, but I have hopes for a solution. Please let me know if there is any way to resolve this, and what the problem is, many thanks in advance.


Solution

  • That's because Heroku Dyno Storage is "Ephemeral" which means that every day the db will be reset because it is taken again from your github or from where it's deploying