R
Railway13mo 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
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
sorry but if you didnt take a backup, the data is gone
Sasha
SashaOP13mo ago
gg
jr
jr13mo ago
What do you mean "use an existing large database for the newly created strapi application"?
ThallesComH
ThallesComH13mo ago
if im not wrong strapi wipes unrecognized tables use directus kids
Sasha
SashaOP13mo 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
ThallesComH13mo ago
that's their cloud version, you can selfhost it @Medim your time to self promote your template
Medim
Medim13mo 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
SashaOP13mo 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
Brody13mo ago
hes just the template maintainer 🤣
Sasha
SashaOP13mo ago
Is this a demo project? Or can it be used as a full-fledged CMS?
Medim
Medim13mo ago
full fledged CMS and no-code api
Sasha
SashaOP13mo ago
When deploying Deploy Directus, specify only email in the settings and can you immediately unload the database? thank you in advance
Medim
Medim13mo 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
SashaOP13mo ago
I already have a database. I'd like to use it
Medim
Medim13mo ago
then u can deploy the template from inside ur project and change ur env vars according to the database that already exists
Sasha
SashaOP13mo ago
Very good. Thank you
Sasha
SashaOP13mo 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
Medim13mo 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
SashaOP13mo ago
umwtf
Brody
Brody13mo 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
SashaOP13mo 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
Brody13mo ago
please read the templates overview for a note on accessing the database in the project externally https://railway.app/template/2fy758
Want results from more Discord servers?
Add your server