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
Percy16mo ago
Project ID: a0592af1-ff46-4545-956a-f020b2279793
khairulhaaziq
khairulhaaziq16mo ago
a0592af1-ff46-4545-956a-f020b2279793
Brody
Brody16mo ago
seems like you want to mount your volume to /db and have your orm create the file if it doesn't exist
khairulhaaziq
khairulhaaziq16mo 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
Brody16mo ago
try mounting the volume to /app/db
khairulhaaziq
khairulhaaziq16mo 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
Brody16mo ago
show me your volume settings
khairulhaaziq
khairulhaaziq16mo ago
just this
khairulhaaziq
khairulhaaziq16mo ago
I saw this is how fly does it
khairulhaaziq
khairulhaaziq16mo ago
does railway have the same way to set? probably thats how I can make mine work
Brody
Brody16mo ago
fly's docs are not applicable here ^
khairulhaaziq
khairulhaaziq16mo ago
i will try this
Brody
Brody16mo ago
bro ^
khairulhaaziq
khairulhaaziq16mo ago
yeah that is mount path I mean the name
Brody
Brody16mo ago
name of the volume is irrelevant ^
Want results from more Discord servers?
Add your server