R
Railway13mo ago
Dheeraj

I need help regarding railwayignore

I have a file named setting.json file in my backend file, which is set as gitignore. setting.json file has country changes which are done by user. But when i do a push to backend, railway takes the changes that has in settings.json in git repo. I want railway to ignore that file so that it does not override the data. Is this possible? MERN Stack
5 Replies
Percy
Percy13mo ago
Project ID: N/A
Dheeraj
DheerajOP13mo ago
NA Project ID: 15849390-ab02-453f-aab6-b3a62f43447f
Brody
Brody13mo ago
railway isn't overwriting the file, it's just not there on the next deployment because you are storing that file in the containers empherial storage, you want to store that file in a volume
Dheeraj
DheerajOP13mo ago
how can i do that?
Brody
Brody13mo ago
mount a volume to for example /app/settings then you store this settings.json in that path
Want results from more Discord servers?
Add your server