Way to get .txt file on railway

Is there any way to have .txt file on railway distributed with my python code. For example. I have python code which web scrapping page for new updates - checking every 5 minutes and sending info to backend. And actually my coode just opening .txt file and comparing last update title with new update title and when title is the same returing print, but when title is new sending to backend. My question is can i get that .txt on railway service next to python file?
9 Replies
Percy
Percy2y ago
Project ID: N/A
gravgor
gravgorOP2y ago
N/A
Percy
Percy2y ago
gravgor
gravgorOP2y ago
And one more, my code is creating .txt if it can find it in folder. My question is just - does that file is creating inside railway service or i cant do that?
Brody
Brody2y ago
you can create files and folders once on railway, but they would disappear on every deployment since storage isnt persistent do you have a .txt file in your repo that isnt making it into a railway deployment?
gravgor
gravgorOP2y ago
Nope, nope - i was just curious if that .txt file is creating once project it's deployed on railway Okey, so thank you. Everything clear now.
Brody
Brody2y ago
as long as that .txt file is temporary and very short lived then all as well
gravgor
gravgorOP2y ago
okey, thanks!
Brody
Brody2y ago
no problem
Want results from more Discord servers?
Add your server