a year 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
a year 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 • 11 months ago
a year 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 • 11 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
a year ago
How Can i change to Postgres.
Status changed to Open chandrika • 11 months ago
a year 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.
a year ago
Have you tried this https://docs.railway.com/guides/postgresql ?