I am trying to deploy a sveltekit application that uses sqlite3 as its database, however all of the data was being lost after I deployed the app, except for data that I created locally while testing.
I have my database in a /data folder at the root of my project.
My main question is why is the data that I created locally while testing persisting across deploys, but any new data I add after successfully deploying is not persisting at all.
No, you’ll want to use /data since that’s your volume mount. For your app, you should use and env variable to point to a relative path for your local env, then an absolute path for your vm.
As far as I know, you can’t directly set your db “data” onto your volume during deployment.