strapi-plugin-config-sync icon indicating copy to clipboard operation
strapi-plugin-config-sync copied to clipboard

Dowload config

Open pcriadoperez opened this issue 2 years ago • 3 comments

Feature request

Be able to download config files.

Summary

I use strapi in Google Run, and as many dockerized containers used in production it is sometimes hard to have cli or file access. Therefore it would be great to have a button to download the exported config files from production environments.

Why is it needed?

Can't access exported config in dockerized containers without access to cli or files.

Suggested solution(s)

Have a button to download exported files.

pcriadoperez avatar Apr 26 '22 00:04 pcriadoperez

Happy to collaborate on a PR on this, if you think it would be of benefit

pcriadoperez avatar Apr 26 '22 00:04 pcriadoperez

Hey @pcriadoperez,

I totally agree with you. This could be a great feature. If you’re willing to submit a PR that would be sweet!

So a couple things that came to my mind:

  • I guess we would want to .zip the entire config/sync/ folder and download that.
  • It makes sense that if we can download the zip we can also upload it.
  • I would say this deserves it’s own page in the admin. Another link below the tool link in the setting.
  • Don’t think we should bother showing any kind of diff-viewer like in the tool.
  • In the backend this could be its own service. The routes and controllers that call the service could be included in the current (main) ones.

Do you have experience building plugins for Strapi? If not you can always shoot me a message and I’ll be happy to help you out 🙂

boazpoolman avatar Apr 28 '22 06:04 boazpoolman

Just pinging @ae94 here and pasting his fork: https://github.com/The-Real-Established/strapi-plugin-config-sync

Do you plan on making a PR of that fork? I'd love to see this merged back to the main branch.

boazpoolman avatar Jun 17 '23 18:06 boazpoolman