Deletion of information with strapi update

Does anyone know why in my strapi template, when making each update requested by the railway, it deletes information? (fields created in the Content-Type Builder)
Solution:
yeah, don't do that, you will lose information constantly, only ever run strapi in production mode on railway
Jump to solution
19 Replies
Percy
Percy5mo ago
Project ID: N/A
JuanseGm
JuanseGm5mo ago
N/A
MantisInABox
MantisInABox5mo ago
If the database is inside of your container, then yes, everything will delete with every redeploy of the application. Unless it is stored on a volume. As the storage inside the container is ephemeral Is this the template you used? https://railway.app/template/strapi
JuanseGm
JuanseGm5mo ago
GitHub
GitHub - railwayapp-templates/strapi: Deploy Strapi on Railway. Nex...
Deploy Strapi on Railway. Next-gen headless CMS. Contribute to railwayapp-templates/strapi development by creating an account on GitHub.
JuanseGm
JuanseGm5mo ago
Is this the same?
JuanseGm
JuanseGm5mo ago
Does this count as a single container or 2?
No description
MantisInABox
MantisInABox5mo ago
Yes, that's the repo for it That's 2 containers. Nothing should wipe out with that setup. I have not used the template unfortunately, so I don't know 100% what could be going on with it Let me look into it, and I'll get back to you shortly
JuanseGm
JuanseGm5mo ago
Thank you very much, I inform you that it has already happened to me twice, I do the automatic update and all my data from the “Content-Type Builder” is deleted I give you some additional data, it only saves me the token created in strapi, the users and an additional Marketplace provider installed Oh, and the media library (embedded images) saved it for me too
Brody
Brody5mo ago
are you trying to run strapi in development mode on railway?
JuanseGm
JuanseGm5mo ago
Are you talking to me about this?
No description
Solution
Brody
Brody5mo ago
yeah, don't do that, you will lose information constantly, only ever run strapi in production mode on railway
JuanseGm
JuanseGm5mo ago
I think that was added to create new types of content
Brody
Brody5mo ago
you create new content types locally, never ever on railway
JuanseGm
JuanseGm5mo ago
Mmm Could you please explain that to me in more detail?
Brody
Brody5mo ago
the template overview that vin linked has a really nice section on how you develop on strapi locally, please read it but tl;dr you run strapi in development mode locally to add the content types, then you push the changes to github and let railway run strapi in production mode
JuanseGm
JuanseGm5mo ago
Hmm okay, thank you very much, I'll read up on this and see what I can do One more doubt This field was empty? I don't remember what it was
Brody
Brody5mo ago
leaving it empty puts it back to the default
JuanseGm
JuanseGm5mo ago
Ty
Brody
Brody5mo ago
no problem!