2 years ago
I'v created a .certs folder with railway run ..., which was created sucessfully. I've also checked it with railway run ls.
However, my app throws an error that this folder doesn't exist.
It looks like the final deployment doesnt copy the folder i created with railway run. Is there anyway to do so?
25 Replies
The railway run ls .certs/ command outputs private.pem public.pem.
But the deploy logs still say Private key not set. Make sure .certs/private.pem exists!
2 years ago
I think u are misunderstanding how railway run works
2 years ago
By "my app throws an error" are you saying locally or the one hosted on railway?
2 years ago
Then u misunderstood how the command works
2 years ago
Tbh that's very common
Hmm, but still not sure how I could create that directory in my deployment
Well, looks like the enviroment variables support multiple lines, so I may just put the certs there
2 years ago
Railway handle certs automatically if ur talking about ssl certs
2 years ago
how often do they change? (the certs)
2 years ago
put them onto a volume then
2 years ago
that is far from ideal, not because it's insecure, but simply because it's not how it should be done or what environment variables are used for
I guess I'll leave them there for now, the project is just an mvp right now, if people like it I'll change it
2 years ago
deploy this
upload the files
move the volume over to the correct service
profit