Files (Again)
I have a version of my bot that doesn't store data in a database but rather in a SQLite file (to make self hosting easier for people who don't like to trouble themselves with postgres). Currently it runs
npx prisma db push
on startup to create the file/make sure it exists, but will the file remain if the service is redeployed? I can already guess what the answer is but I just want to make sure9 Replies
Project ID:
N/A
N/A
will the file remain if the service is redeployed?yes as long as you store the sqlite file in a volume
Great. I gotta update the guide to include this though. For the people hosting at railway at least, even tho I recommend a vps
make a template that includes postgres?
It's a separate branch on github, the dbless one. I don't have any railway templates but with how straightforward it is it shouldn't be hard to self host either one
The one with a db is preferred cuz it makes my life easier but I can't exactly cut off people who don't know how to manage/setup one
making a template is preferred, since you would then get kickback https://railway.app/open-source-kickback
I know, I just don't really like that + I don't need it, am good
Thx for the suggestion tho
no worries