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
Project ID:
cc172599-3175-4230-8a19-208d92944ea0
cc172599-3175-4230-8a19-208d92944ea0
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👍 Ill try that