a year ago
Hello,
we have the following use case: We are migrating our services to railway. With that we have a lot of files on our (to be migrated) productive, staging and dev volumes.
In order to get everything working cleanly we:
1. Deploy the services + database on railway
2. Migrate the database from our old system to railway
3. Copy the files from our old system to railway
How do we archive 3.? Is there any way to connect to a volume (CLI?). The docs are empty on this topic.
Best Regards,
Kai
1 Replies
a year ago
Hello,
First off, welcome to Railway! we are pleased to have you here!
Unfortunately we don't yet provide a native filebrowser, so volume access can only be done via the service attached to the volume.
That's where this template comes in -
https://railway.com/template/Nan7Bs
It comes with its own volume, and for your usecase you would want to set USE_VOLUME_ROOT=1 -
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
Then you simply upload the needed files, unmount it's volume and mount it to the desired service, since and repeat!
Hope this helps!
Best,
Brody
Status changed to Awaiting User Response Railway • about 1 year ago
Status changed to Solved kaiwerther • 9 months ago