R
Railway7mo ago
Sasha

The postgres database has been deleted. How to restore if you didn’t make a backup???

I decided to use an existing large database for the newly created strapi application, and the database was HAHAHA
23 Replies
Percy
Percy7mo ago
Project ID: N/A
Brody
Brody7mo ago
sorry but if you didnt take a backup, the data is gone
Sasha
Sasha7mo ago
gg
jr
jr7mo ago
What do you mean "use an existing large database for the newly created strapi application"?
ThallesComH
ThallesComH7mo ago
if im not wrong strapi wipes unrecognized tables use directus kids
Sasha
Sasha7mo ago
The database was used for the Strapi admin panel. Due to the fact that some data from the table did not want to be displayed in the strapi, I decided to locally create a new strapi application and use the evn of this database oh, I'll know wow. subscription 100 bucks. this is definitely not for me
ThallesComH
ThallesComH7mo ago
that's their cloud version, you can selfhost it @Medim your time to self promote your template
Medim
Medim7mo ago
Gonna self promote but also gonna say to look at Strapi docs, u prob can disable the erase on deploy thing. Directus does that by default since one of its premises is to use it on top of existing DBs (so it wont erase it lmao) Anyway here's the Directus template https://railway.app/template/2fy758 But searching for your issue on google it seems like its a very recurrent issue
Sasha
Sasha7mo ago
Thank you, kind man. Fuck strapi. I've been marking time for a long time, but the problem is not solved. I'll try your product
Brody
Brody7mo ago
hes just the template maintainer 🤣
Sasha
Sasha7mo ago
Is this a demo project? Or can it be used as a full-fledged CMS?
Medim
Medim7mo ago
full fledged CMS and no-code api
Sasha
Sasha7mo ago
When deploying Deploy Directus, specify only email in the settings and can you immediately unload the database? thank you in advance
Medim
Medim7mo ago
You specify the email, it generates a password that u can copy in the env vars tab. Didn't understand your database question, but the template creates it for you
Sasha
Sasha7mo ago
I already have a database. I'd like to use it
Medim
Medim7mo ago
then u can deploy the template from inside ur project and change ur env vars according to the database that already exists
Sasha
Sasha7mo ago
Very good. Thank you
Sasha
Sasha7mo ago
When deploying the project, I had to specify variables in the database, and after doing so, an error occurred. I also couldn't connect to the database using the command.
No description
Medim
Medim7mo ago
The template deploys a private unexposed database if im not mistaken So maybe thats why u can't connect from external sources, only from services who communicate. But i may be in the wrong here.
Sasha
Sasha7mo ago
umwtf
Brody
Brody7mo ago
medim is correct, the database the template comes with is unexposed by default, even so, please stay away from the data tab, as it can cause undesired side effects
Sasha
Sasha7mo ago
The solution to my problem was to create a local directus. And it really doesn’t overwrite the database. I understand that I cannot load my own database into the templates.
Brody
Brody7mo ago
please read the templates overview for a note on accessing the database in the project externally https://railway.app/template/2fy758