browse files on a volume?
is it possible to browse the files stored on a volume? (im thinking some kind of web interface?)
19 Replies
Solution
yep, use the filebrowser template! https://railway.app/template/Nan7Bs
Oh wow
Thanks I'll try this and update here
@Brody keep seeing this
gotta wait a bit
okie
railway takes a few moments to register new domains
okay will check back in a bit!
seems to be working now! could you tell me where i can find my password and username for this?
i think i did enter a variable name for the username but dont remember creating any password 🤔
in the service variables
found it!
however, it did not ask me which volume i want to browse?
nope, you need to attach your volume to it
ah
and it already has one attached
that'll also stay?
nope you need to remove that
looks like this
indeed it does
okay i see
so looks like ideployed the file browser as its own project
i should deploy it within the same project as the volume i wish to browse to be able to share the same volume between my existing deployment and the file browser, right?
you do need to deploy it into the same project but you can not share the volume between two services, you would need to remove the volume from your app and attach it to the filebrowser service
oh i see
hmmmm
so lets say my program is writing data to the volume, i cannot see the files being added in real time
unless your app itself implements such functional, no
all file access to the volume needs to be done by the service it's attached to, and you can only attach one volume to one service at a time
okay