Persistent storage
I have Directus installed (postgres) and when I redeployed my files were wiped out(mostly images). I'm trying to setup persistent storage but my brain is just not able to grasp what I am supposed to do. I'm using this link https://docs.railway.app/reference/volumes which I'm not even sure that is what I need. Thanks.
6 Replies
Project ID:
d911897c-20b8-46c5-8fa1-00af65bac5f5
d911897c-20b8-46c5-8fa1-00af65bac5f5
Mount the volume to your service on a specified path, then ensure that the data you’d like to persist is saved to that path. Make sure a folder on that path is NOT on github, as that will overwrite the volume
I'm going to plug medim's template here https://railway.app/template/2fy758
works flawlessly last we checked
I have the Directus already installed (I'll use this for the next one). I just need the persisted storage configured for the files that get uploaded.
the template i linked above has a volume mounted to
/directus/uploads