R
Railway10mo ago
JuanseGm

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
Percy10mo ago
Project ID: N/A
JuanseGm
JuanseGmOP10mo ago
N/A
MantisInABox
MantisInABox10mo 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
JuanseGmOP10mo 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
JuanseGmOP10mo ago
Is this the same?
JuanseGm
JuanseGmOP10mo ago
Does this count as a single container or 2?
No description
MantisInABox
MantisInABox10mo 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
JuanseGmOP10mo 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
Brody10mo ago
are you trying to run strapi in development mode on railway?
JuanseGm
JuanseGmOP10mo ago
Are you talking to me about this?
No description
Solution
Brody
Brody10mo ago
yeah, don't do that, you will lose information constantly, only ever run strapi in production mode on railway
JuanseGm
JuanseGmOP10mo ago
I think that was added to create new types of content
Brody
Brody10mo ago
you create new content types locally, never ever on railway
JuanseGm
JuanseGmOP10mo ago
Mmm Could you please explain that to me in more detail?
Brody
Brody10mo 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
JuanseGmOP10mo 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
Brody10mo ago
leaving it empty puts it back to the default
JuanseGm
JuanseGmOP10mo ago
Ty
Brody
Brody10mo ago
no problem!
Want results from more Discord servers?
Add your server