Giter Club home page Giter Club logo

Comments (4)

tjrexer avatar tjrexer commented on August 11, 2024 2

Yea, it does, thanks. I only have one environment, so the core_store table works for me, but would probably be good to add information about both the NGINX config & your config-sync plugin to the README in case anyone else runs into the same problem. Might be good to cover it as an advanced setup.

from strapi-plugin-sitemap.

boazpoolman avatar boazpoolman commented on August 11, 2024 1

Ah allright, I think I get the issue.

To answer your question: the settings of this plugin are stored in de core_store table of your database.
The contents of this table can not be migrated across environments by default in Strapi.
So you would manually have to do the changes in the admin UI again in your docker env, or copy the contents of the core_store table and paste them in the database of your docker.

Another option for this is using my other strapi plugin strapi-plugin-config-sync.
This plugin allows you to export all the values from the core_store table and write them as json files in the /extensions folder of you project.
With the values persisted as files you can migrate to another environment en import all these files to overwrite your database with the new values.
This plugin is still in development, but it should do the trick.

Let me know if this clears it up for you!

from strapi-plugin-sitemap.

boazpoolman avatar boazpoolman commented on August 11, 2024

Hey @tjrexer!
Thank you for your issue submission.

As you stated; once downloaded this plugin wil be stored in de node_modules folder of your Strapi instance.
Though I'm unsure what you mean by hosting it in a container. Do you mean a docker container? With the strapi/strapi docker image?

Also as far as I'm concerned any community plugin you'd download will be stored in the node_modules folder. Do you also maby have an example of a plugin which does work in your installation.

Thanks in advance! 🙃

from strapi-plugin-sitemap.

tjrexer avatar tjrexer commented on August 11, 2024

When writing my reply, started to dig a little more into my setup. Turns out I didn't have nginx set up correctly. I didn't realize that the plugin added new api paths that needed to be added to proxy settings, thought it worked within the existing content-manager paths.

With regards to the strapi/strapi docker setup, you are correct, that is what I was referring to. Storing in node_modules isn't what I was referring to though. Most extensions/plugins have configs that are modified under the /config or /extensions directory in the project. However, since there aren't any settings for this plugin there, you need to import the full ./build/ directory from outside the container.

Best practice for docker is to import configs/files, & rebuild a clean copy inside the container. However, since I don't see anything for the plugin I don't believe it's being imported correctly. That is why I suspect that the settings or changes are being stored locally for the plugin in node_modules, but it could also be in .cache (another file not imported).

from strapi-plugin-sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.