Directus: I added env variable on Railway when it Redeployed Directus, it resets my Database
How can I roll it back? I'm new to railway and hope somebody helps
Solution:Jump to solution
Railway’s storage is ephemeral, meaning it’s wiped on each deploy. However, if you store your data in a volume, the data will persist between deploys.
https://docs.railway.app/reference/volumes...
7 Replies
Project ID:
e31a5952-7960-46fd-ae76-463584cfa70b
e31a5952-7960-46fd-ae76-463584cfa70b
Unfortunately, you won’t be able to roll it back. Are you using a sqlite database?
Solution
Railway’s storage is ephemeral, meaning it’s wiped on each deploy. However, if you store your data in a volume, the data will persist between deploys.
https://docs.railway.app/reference/volumes
I don’t recommend sqlite databases for production use. Additionally, it’s a bit complex to set up with volumes. swapping to a separate postgres or mariadb service would be better.
Thanks, i changed it already.
Looks like I have to start over. luckily I'm just starting out
glad to hear it, sorry it can’t be rolled back.