I would like to version control my WP sites with git.
A big struggle I have with this is: who how do you version control options/plugin settings in the database.
I would like to don't touch the dashboard in the live site. Only Only the users should need to login in to write posts - but I as a developer would like to log in only to check if everything is working on the live machine.
Is there a way to do this?
I know that Drupal 8 has a build in configuration management - that's their solution. I I also know versionpress"versionpress" and similar plugins. But they also version control the posts/pages/users etc. I don't need this.
Maybe is there a lightweight framework or something to for example insert options/pages/settings via code. Example:
Update option 'site_url' to 'http://example.com';
Reset update option 'site_url' to 'http://noexample.com';```
(the second line is to redo this step)
I guess there are some things in ruby on rails or similar.
Would be great to separate code/options/settings and content/media/user-generated-stuff.