Avoid new "fly deploy" delete volume sqlite db

Hello,

I’m hosting a (shopify) Remix app & prisma on Fly.io that uses a sqlite db created in a volume.

I’ve noticed that every time I launch “fly deploy”, my db is being deleted even if it’s a persistent volume. (Maybe I’m not understanding how it works?)

I’d like to always keep my db automatically, even after new deploys. Is this possible?

Thank you :slight_smile:

You need to put your database on a volume:

Volumes · Fly Docs

Can you ssh into the machine and find the database? What is its path?

Was using a wrong path to mount the sqlite. Thanks

From How To to Questions / Help