volumes mount path

hi it is my first time trying to deploy sqlite ever. Im running sinatra app and the orm is sequel. right now this is how I connect to the sqlite.
DB = Sequel.connect('sqlite://db/myapp.db')
DB = Sequel.connect('sqlite://db/myapp.db')
so what do I do to use volumes? I have no idea. do I need to include my sqlite file when deploying or not?
15 Replies
Percy
Percy17mo ago
Project ID: a0592af1-ff46-4545-956a-f020b2279793
khairulhaaziq
khairulhaaziqOP17mo ago
a0592af1-ff46-4545-956a-f020b2279793
Brody
Brody17mo ago
seems like you want to mount your volume to /db and have your orm create the file if it doesn't exist
khairulhaaziq
khairulhaaziqOP17mo ago
what if I already put it in my git repo? I mean my orm specifically writted db/myapp.db . so should I name the volume and how?
Brody
Brody17mo ago
try mounting the volume to /app/db
khairulhaaziq
khairulhaaziqOP17mo ago
okay a sec I'll give it a try yeah it doesnt work I think, I changed it and tried redeploying it didnt persist
Brody
Brody17mo ago
show me your volume settings
khairulhaaziq
khairulhaaziqOP17mo ago
just this
khairulhaaziq
khairulhaaziqOP17mo ago
I saw this is how fly does it
khairulhaaziq
khairulhaaziqOP17mo ago
does railway have the same way to set? probably thats how I can make mine work
Brody
Brody17mo ago
fly's docs are not applicable here ^
khairulhaaziq
khairulhaaziqOP17mo ago
i will try this
Brody
Brody17mo ago
bro ^
khairulhaaziq
khairulhaaziqOP17mo ago
yeah that is mount path I mean the name
Brody
Brody17mo ago
name of the volume is irrelevant ^
Want results from more Discord servers?
Add your server