a year ago
My requirement is to upload oracle-client files to a volume attached to my project fastapi-ces.
To do this
In fastapi-ces I had created a volume (whistle-volume) and mounted under a path oracle-client
Next I disconnected the whistle-volume from fastapi-ces project
Now I create a new project filebrowser from template filebrowser
After successful creation I notice it has created a volume (friend-volume)
By logging into the filebrowser app I'm able to copy files to the friend-volume.
Now when I disconnect the friend-volume from the filebrowser project, I am not able to attach whistle-volume to filebrowser project.
Could you guide me on what is the mistake I have made and how do I connect the whistle-volume to the filebrowser project
9 Replies
a year ago
How're you unable to? Like does the filebrowser app not work after mounting or does the button to mount not appear or is some kind of error showing up?
a year ago
As stated above I initially created a volume and attached to my project fastapi-ces The name shown is whistle-volume (See 01-Volume Created for attachment with fastapi-ces project but dismounted)
I need to copy some driver files which are needed to connect to Oracle database in a folder instantclient_12_1.
So dismounted volume whistle-volume from fastapi-ces project
Next created the Filebrowser project from Template Filebrowser. It automatically created a Volume friend-volume attached to project (See 02-Volume Created in file-browser project)
As suggested I mount volume under /data and USE_VOLUME_ROOT 1.
Now I'm able to use filebrowser and access the volume and upload the folder (See 03-Using File Browser Upload the folder)
Now I detach the volume friend-volume from filebrowser project.
Now I attach whistle-volume to fastapi-ces project, but I do not find the folder instant_client_1 created at Step 6. It means a different volume was attached to filebrowser project
How do I attach the volume whistle-volume to filebrowser project and upload the driver files?
Attachments
dev
How're you unable to? Like does the filebrowser app not work after mounting or does the button to mount not appear or is some kind of error showing up?
a year ago
The Volume that I have Created against the fastapi-ces project, I'm not able to access that in the filebrowser app
a year ago
Oh I see what you mean, you're saying you uploaded files to friendly-volume instead of whistle-volume but you want to use whistle-volume in the filebrowser instance instead?
If that's the case you can just mount whistle-volume under /data to FileBrowser, change the files, dismount and mount it back on fastapi-ces
Filebrowser does come with its own volume but if you're using FileBrowser to browse an existing volume then you can just delete the volume it comes with since you won't be needing it
dev
Oh I see what you mean, you're saying you uploaded files to friendly-volume instead of whistle-volume but you want to use whistle-volume in the filebrowser instance instead? If that's the case you can just mount whistle-volume under /data to FileBrowser, change the files, dismount and mount it back on fastapi-cesFilebrowser does come with its own volume but if you're using FileBrowser to browse an existing volume then you can just delete the volume it comes with since you won't be needing it
a year ago
You're right. I need to mount whistle-volume. But I do not see that volume when I use the FileBrowser Project.
As shown in the snapshot I see only the friend-volume.
What is it I've to do to see the whistle-volume, in filebrowser project ?
a year ago
You need to deploy the Filebrowser template into the same project.
You currently have it in it's own separate project.
brody
You need to deploy the Filebrowser template into the same project.You currently have it in it's own separate project.
a year ago
Thanks for the Update.
I have no idea how to do that.
Could you guide me to some documentation or let me know how to do it
a year ago
Please see our docs on this topic -
https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project
brody
Please see our docs on this topic -https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project
a year ago
Thanks so much for your help and assistance in pointing me to the correct document.
It works perfectly...
Status changed to Solved dev • about 1 year ago
