Uploading files
Is it possible to manually upload files to a deployment? I have a public GitHub repository that holds my (yaml) configuration file what I wish to not be public. Is there a way to manually upload the file onto railway without it being present in the repo?
Solution:Jump to solution
🤔 one possible way might be by uploading it to a volume, you can use Brody's filebrowser template for that, your script can then just fetch it from the volume
5 Replies
Project ID:
bdf52ca3-6199-4fdc-b415-bc60d97ba135
bdf52ca3-6199-4fdc-b415-bc60d97ba135
Solution
🤔 one possible way might be by uploading it to a volume, you can use Brody's filebrowser template for that, your script can then just fetch it from the volume
Hm, I see. Do you have a link to this?
Volume Documentation: https://docs.railway.app/reference/volumes
Filebrowser Template: https://railway.app/template/Nan7Bs
For the filebrowser template, you'd want to:
1. Deploy it inside of your project by right clicking and adding a Template from there
2. Set
USE_VOLUME_ROOT
to 1
when deploying
To use it, delete the volume it comes with, attach the volume of your service
this will let you alter the files in the volume once you go to the templates site
once you're done, reconnect it to your main service