Dont Update Database after GitHub push
luca-melop
TRIALOP
2 years ago
I have a Flask application that stores data in a database. Whenever I push a new version the database also gets overwritten. But on the database are the data stored that should be the same over the different versions. How can I ensure that the database does not get updated when I commit and push on GitHub?
1 Replies
dev
MODERATOR
2 years ago
Sounds like your database is hosted on the same service as your app, your service can't store persistent data by default since it gets rebuilt every time you push an update.
You'd want to store your data in a Railway volume
or
You can use a database service provided by Railway
Status changed to Solved Railway • about 2 years ago