R
Railway6mo ago
Crabi

How to view changes in the database sqlite?

I deployed the project (telegram bot) through GitHub and there is a .dp file there, all changes on the server are saved, but when I want to download the database and look, it is not updated on GitHub, how can I see all the changes in the database??
17 Replies
Percy
Percy6mo ago
Project ID: 1c4b9758-1370-43f9-921d-fdac6f01f7da
Crabi
CrabiOP6mo ago
1c4b9758-1370-43f9-921d-fdac6f01f7da
Brody
Brody6mo ago
GitHub to railway is a one way train, are you using a volume?
Crabi
CrabiOP6mo ago
no(
Brody
Brody6mo ago
you would need to use a volume for data persistence
Crabi
CrabiOP6mo ago
how to do it? I'm new to this topic, please help
Brody
Brody6mo ago
its not going to allow you to see the database but it will enable data persistence
Crabi
CrabiOP6mo ago
thanks should I connect volume ./user_data?
Brody
Brody6mo ago
that would not be a valid path for a volume mount where do you write your database file to?
Crabi
CrabiOP6mo ago
my file in github repositories user_data user_data, bot.py, worker
Brody
Brody6mo ago
user_data is a folder?
Crabi
CrabiOP6mo ago
no, is user_data.dp everything in one directory
Brody
Brody6mo ago
you would need to move it into a subfolder like a data folder then you can mount the volume to /app/data
Crabi
CrabiOP6mo ago
bot.py worker -----folder data---- user_data.db ?
Brody
Brody6mo ago
.
├── bot.py
├── worker
└── data/
└── user_data.db
.
├── bot.py
├── worker
└── data/
└── user_data.db
yes
Crabi
CrabiOP6mo ago
thanks
Want results from more Discord servers?
Add your server