Separate System config data from User data
-
Hi,
We are working on deploying nodebb with Docker image and One of the biggest issue we found in we found is the mix of system config data and user data.
System config data include system settings, activated plugin info, plugin settings and etc.
User data include all the posts.To build a ready to deploy docker image, you want install all the necessary plugins and add their config data. This is really hard if the system data is mixed with user posts.
Do we have a plan to separate these two kind of data?
-
Are you talking about the data being in the same database? What kind of plugin data are you referring to?
-
process.env
is a global Node.js variable. You may want to look into more of how Node.js works before you continue. -
For a large part this is an architectural issue.
It would extremely useful if it were possible to test a plugin on the production database in a development or staging environment.That's not possible when NodeBB gets the list of activated modules from the database.
We have a similar problem like this with Drupal7. It's close to impossible to test something on the production data without making a copy (which is extremely unpractical with a large DB) because of the tight coupling between configuration and content.
Haven't used it yet but Drupal 8 has improved on that issue quite a bit:
https://www.drupal.org/docs/8/configuration-management/managing-your-sites-configuration