Replies: 2 comments 5 replies
-
Why not rely on the drafts and versioning on prod environment to manage the release of the content? No DB imports/exports to run + no file upload management shenanigans if you're not using a cloud provider for that. |
Beta Was this translation helpful? Give feedback.
-
We have some scripts that use mongo commands that were written for enterprise clients. We can share a generic version if it helps. All we do is add a script to the package.json for managing DB dump and import. It takes a source and a destination to move data between different databases for prod to staging/dev environments. Import and export is a heavy handed approach and we will have a solution for migrations in the future. |
Beta Was this translation helpful? Give feedback.
-
Lets say we use it as simple CMS with some Pages collection, which has some blocks and some consumer Next.JS website. And both of them installed on two servers - dev and live.
And most likely workflow for content-managers will be to create tone of content on dev and then say 'ok we are done, please update live'
Strapi has plugins which allows to export-import data as json. Here we have mongodb, which theoretically even better - can export whole collection and it should work (except some relations like Media)... But why there is nothing like this in docs and dicussions? Maybe it should be done totally different?
Beta Was this translation helpful? Give feedback.
All reactions