R
Railway15mo ago
Mrxbox98

SQLite Database

Im trying to deplay a discord bot that uses an sqlite database. Ive created a persistent volume for the sqlite database in the /data path and also set my sqlite file to be saved there, but on every redeploy the sqlite database is removed. How do I solve this?
4 Replies
Percy
Percy15mo ago
Project ID: cc172599-3175-4230-8a19-208d92944ea0
Mrxbox98
Mrxbox9815mo ago
cc172599-3175-4230-8a19-208d92944ea0
MantisInABox
MantisInABox15mo ago
If the database is being wiped out, you aren’t saving to the volume Use this environment variable to set the path of where the database file should be written RAILWAY_VOLUME_MOUNT_PATH Just reference that variable in your code as the path portion of saving and reading your file
Mrxbox98
Mrxbox9815mo ago
👍 Ill try that
Want results from more Discord servers?
Add your server