13 days ago
I have a Telegram bot deployed on Railway. If I redeploy it, will the bot’s database be erased or will it remain?
2 Replies
13 days ago
It depends on where your database is stored. If your bot uses a separate database service (like PostgreSQL, MySQL, MongoDB, or Redis deployed as its own service), that data is independent of your bot's deployments and will persist across redeploys. If your bot stores data in a file on the local filesystem (like SQLite), that storage is ephemeral and will be erased on each redeploy unless you attach a volume to persist it.
Status changed to Awaiting User Response Railway • 13 days ago
13 days ago
how to attach a volume to persist it?
Status changed to Awaiting Railway Response Railway • 13 days ago
Status changed to Solved rooyy1 • 13 days ago