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?
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

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
About storageHello I'm newbie here, i just wanted to know how much storage will i have with the hobby plan?, I anode_modulesI'm trying to deploy using my build script. The build script consist in install normally the packageDefault Express template fails to deployHi, I've tried to deploy the ExpressJS template with no modifications, but am getting errors. Thx foQuestions about pricing for my customersHi, I'm planning to open a web agency and use Railway to deploy our customers' websites. Each customRailway IPv4Guys, does Railway "exports" IPv4 to another service allow its usage permission? I'm using a Redis s[PHP] Route all requests to index.phphttps://twitter.com/Shpigford/status/1693092242943025554I can't buy the planWhen I try to subscribe to the $5 plan, it gives me an error message saying "Your card does not suppI have a problem with my express applicationin the application status it says success but it is not displayed on the websitewhat is the reason for this error?npm WARN config production Use `--omit=dev` instead.Subscription already existsI can't enable the developer plan, the system returns the message: "Subscription already exists"FLASK APP failed to deployI used the refernce flask project idk why maybe the build/run command i put in was incorrect?503 error after binding to ipv6I get a 503 error after binding to ipv6 for internal communication between 2 services. attached my How do I link my services internally?Hello, I tried to figure it out on my own, but I have just ended up losing sleep haha. I'm having anBuild fails when pushing a project with docker-compose file.I am trying to link a project from cli and trying to push it to railway. i am using a docker composeQuestionsI have deployed my project. How can I put this project as asleep?my api wont start on railwayi tried remvoing nodemon from my start script and I also tried in my start script using "node index.