Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you accomplish this with DTS? Just asking for a friend. #1

Open
PaulBratslavsky opened this issue Oct 26, 2023 · 2 comments

Comments

@PaulBratslavsky
Copy link

[Regarding this file](https://github.com/strapi/strapi-cloud-template-blog/blob/main/src/bootstrap.js_

@kibwashere
Copy link
Member

hi @PaulBratslavsky !

I might not be the best one to answer but I believe it's not something we can manage.. 🤔
The template is generated using a command such as create strapi-app my-project --templates @strapi/template-XXX so it means with the current way we are handle Strapi Cloud Templates, it's not doable - or am I missing something? happy to get more details about DTS :)

@PaulBratslavsky
Copy link
Author

@kibwashere Thank you for the answer.

I wonder if this means that we need to update the template to include the seed-data.tar.gz file with the seed data and remove the code in the bootstrap.js file and instead just trigger yarn strapi import -f seed-data.tar.gz on deployment, the only issue with that. Is when pulling the code to local repo. I think we will have to run the import command manually.

I wonder if there is a programmatic way to trigger this without the CLI. Like is there a way to access DTS from via the bootstrap.js file.

I will try to bug some more people on the team around this topic. It seems we put so much time into DTS, that it should be the standard way to handle data imports or seeding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants