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:Jump to solution
yeah, don't do that, you will lose information constantly, only ever run strapi in production mode on railway
19 Replies
Project ID:
N/A
N/A
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
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.
Is this the same?
Does this count as a single container or 2?
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
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
are you trying to run strapi in development mode on railway?
Are you talking to me about this?
Solution
yeah, don't do that, you will lose information constantly, only ever run strapi in production mode on railway
I think that was added to create new types of content
you create new content types locally, never ever on railway
Mmm Could you please explain that to me in more detail?
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
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
leaving it empty puts it back to the default
Ty
no problem!