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
Project ID:
N/A
N/A
You might find these helpful:
- Python Discord Bot
- Is that possible to check the files inside railway?
- Auto Run a Python Script Monthly.
⚠️ experimental feature
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?
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?
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.
as long as that .txt file is temporary and very short lived then all as well
okey, thanks!
no problem