The Volume File Browser for Railway is a tool designed to access the files stored in a volume. This utility provides a simple and efficient way to retrieve files from the designated volume.
- File Retrieval: Download files stored in the attached volume.
Follow these steps to deploy this template service:
Note: This template must be deployed into a pre-existing project, it wouldn't be much use deploying it as its own project.
-
Open the Project: Start by opening the project that contains the desired service with the volume you want to download data from.
-
Add Volume File Browser: Click the
+ New
button and search forVolume File Browser
. -
Note the Current Mount Path: Right-click on the volume you want to access, then choose
View Settings
. Take note of the current mount path, as you will need it later. -
Remove the active deployment: The active deployment must be removed, otherwise it may try to write to a non-existent volume. Open the service and click on the 3-dot menu on the active deployment, choose Remove, and Remove once again on the prompt.
-
Disconnect the Volume: Right-click on the volume attached to your service and select
Disconnect
. -
Mount the Volume to Volume File Browser: Click on the newly disconnected volume, then click
Mount
and selectVolume File Browser
as the destination, and use/data
as the mount point. Wait for the redeployment process to complete. -
Retrieve Basic Auth Credentials: The basic authentication credentials will be logged in the deploy logs.
-
Access the Utility: Click on the Railway-provided domain to access the File Access Utility, and login with the auto-generated credentials.
-
Download Files: Once logged in, you can now download your desired file(s) from the volume.
-
Disconnect the Volume: After downloading the file(s), disconnect the volume from the File Browser service.
-
Remount to Original Service: Finally, mount the volume back to the original service using the original mount path noted earlier.
-
Redeploy the Service: Allow the service to redeploy, ensuring that the volume is correctly attached.