8 months ago
The project was working 2 days ago, but now it's not. When I redeployed the project, the data in the database was removed. I need your help, thank you
4 Replies
8 months ago
Hello,
You are using sqlite without a volume, therefore you have your application storing the database file in temporary storage, storage that is lost every deploy.
Going forward, you would want to hook your deployment up to the Postgres database you have deployed.
Best,
Brody
Status changed to Awaiting User Response Railway • 9 months ago
8 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 9 months ago
brody
Hello,You are using sqlite without a volume, therefore you have your application storing the database file in temporary storage, storage that is lost every deploy.Going forward, you would want to hook your deployment up to the Postgres database you have deployed.Best,Brody
8 months ago
How Can i change to Postgres.
Status changed to Open chandrika • 9 months ago
8 months ago
Hi, it would depend on what type of project you made. What language is it?
laila-front-dev
How Can i change to Postgres.
8 months ago
Have you tried this https://docs.railway.com/guides/postgresql ?