Question with volumes
vico1993
HOBBYOP

2 years ago

Hello! I'm trying to access my txt file, which has been uploaded to my service volume.

I use this template ( https://railway.app/template/Nan7Bs ) to upload my text file.

Mount this volume on my service.

But it seems like I can't reach it.

I tried different options: /data or /app/data

My service uses an ENV variable to reach this txt file ( VOCABULARY_FILE_PATH ). I tried /data/word.txt or /app/data/word.txt or ./data/word.txt

but it seems like nothing is working right now.

I used this documentation: https://docs.railway.app/guides/volumes

Can you help me?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

2 years ago

Hey, When you deployed that template did you set USE_VOLUME_ROOT to 1 ?

If not, The uploaded files are placed in a /storage directory at the root of the volume.


vico1993
HOBBYOP

2 years ago

Thank you Brody!

I missed this in the template issue! It's working very well now!


Status changed to Solved brody almost 2 years ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...