How To Put a File That Is Not On Source Control On a Railway Docker Application
jeffperterson
HOBBYOP

2 years ago

Hello I have a question. I would like to know how I can add a file that is not in my GitHub source control to a Django application. Specifically, I want to add a custom settings file for production. Is there any procedure that I can take to make this happen? Thanks!

Solved

10 Replies

jeffperterson
HOBBYOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

without a native filebrowser I can't think of a straight forward way to do this


jeffperterson
HOBBYOP

2 years ago

Thank you @Brody for your response, I had looked into a file browser for railway but it is a template: https://railway.app/template/guiCBv.


jeffperterson
HOBBYOP

2 years ago

I am not sure if I would be able to attach that to my Django application that is pulled from GitHub


brody
EMPLOYEE

2 years ago

yeah I know, I didn't mention it because that's fine if you wanna put something on a volume once and never touch it again but if you need to keep changing the file it's not going to be fun


brody
EMPLOYEE

2 years ago

you would have to move the volumes around since you can only attach one volume to one single service at a time


jeffperterson
HOBBYOP

2 years ago

That makes sense. I suppose it would be rather inefficent to do this. In your opinion, would it make more sense to simply add my settings file to source control but ensure that I am using environment variables over potentially sensitive information? I know that some Django practices typically have a separate settings file for local development and one for production but perhaps doing it this way would be better for railway?


Status changed to Solved Railway almost 2 years ago


brody
EMPLOYEE

2 years ago

yeah I think that's fine, just keep everything even remotely sensitive as environment variables


jeffperterson
HOBBYOP

2 years ago

Awesome thank you @Brody !


brody
EMPLOYEE

2 years ago

no problem!


Loading...