a year ago
I am using firebase to upload images and firebase have a specific way of doing things, that is upload a file with the certification config.
This file, of course, have sensible data. How can I upload files like this without pushing it to my project?
201 Replies
a year ago
you would need to first upload the file with this -
and then move the volume over to your service
a year ago
yes, read the software's docs please -
a year ago
You will need to move the volume over to your app
a year ago
you can create whatever folder structure you want
a year ago
not unless you want to
a year ago
do what works best for you
a year ago
disconnect it and connect it to your app's service
a year ago
no it is not
a year ago
gotcha
a year ago
i dont see why you need to
a year ago
wherever you uploaded it within the volume
a year ago
the volume will be whereever you mount it
a year ago
correct, nor would you want to
a year ago
please read this -
but it still not being available to access on my app.
am i forgetting something?
a year ago
have you carefully read its overview?
a year ago
i'm sorry, i dont see the relevance to what i had just asked
a year ago
please read the template overview
a year ago
slow down, read it again
a year ago
yes it does, slow down, read it again
a year ago
you are skim reading it
a year ago
to be clear, you should be reading this -
were you talking about this part?
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
a year ago
you have that variable set to what value?
a year ago
then the path you mounted the volume to or the path you are trying to read the file from is incorrect, or both
a year ago
what did you mount the volume to
/app
inside the volume i created a folder called secrets and inside of it, file.json
a year ago
^
a year ago
you don't gain any problem solving abilities if I gave you all the simple answers
a year ago
this is not a platform or anything specific to the platform, this is just simple file paths and such
a year ago
nothing Railway specific
so why does it work when i create the file manually but not when i use this volume stuff?
a year ago
because you are doing something incorrectly
a year ago
^
if i am, it is related to the volume, not to the app, the app is working correctly
a year ago
volume's are nothing special, it's simply a place to store files
Nixpacks, the default buildpack used by Railway, puts your application files in an /app folder at the root of the container. If your application writes to a directory at a relative path, and you need to persist that data on the volume, your mount path should include the app path.
a year ago
yep
a year ago
if you set that variable, yes, though I haven't looked at your filebrowser service to verify if you did
a year ago
that variable is specific to my filebrowser template, not railway, using correct file paths is not specific to railway either.
I recommend you read our guide again and read up on how file paths work in general.
keep trying, you will get there, and learn a new skill in the end.
a year ago
a folder named /app is not specific to Railway
a year ago
^
a year ago
… have you moved the volume over yet?
a year ago
let's see
a year ago
i mean, that's definitely a volume, but is it the volume that was attached to the filebrowser?
a year ago
what did your app fail with
a year ago
(the file provided by you)
a year ago
did you put it on the volume?
a year ago
then it's on the volume
a year ago
they came from the filebrowser software
a year ago
well lost+found is a linux thing, but that's besides the point
a year ago
right
a year ago
yes it does
a year ago
right
a year ago
^
a year ago
did you use nixpacks?
Volume Availability
Volumes are mounted to your service's container when it is started, not during build time.
If you write data to a directory at build time, it will not persist on the volume, even if it writes to the directory to which you have mounted the volume.
Volumes are not mounted as overlays.a year ago
did you tell me that you needed that file during build?
a year ago
I get so many people using failed builds as a generic term for a crash at any stage, specifics are key
a year ago
alright, how big is that file
a year ago
since when are they that large?
a year ago
alright we'll try to base64 encode the json, set the base64 string as a variable, and then in code decode the base64 back into a string
a year ago
just a thought, I forget how large variables can be, I think that should fit
a year ago
why not?
a year ago
oh you said you don't like your idea, try mine
a year ago
yes
a year ago
2.34kb worth of data should fit into a variable, but don't quote me on that
a year ago
see what happens, it can't hurt
a year ago
if you break railway I won't hold you accountable
a year ago
well it's a good thing we don't bill for variables
a year ago
I sure hope not











