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