{"id":20406759,"url":"https://github.com/xwp/config-driven-wp","last_synced_at":"2025-04-12T15:08:26.572Z","repository":{"id":10620044,"uuid":"12840706","full_name":"xwp/config-driven-wp","owner":"xwp","description":"Config-Driven WordPress","archived":false,"fork":false,"pushed_at":"2013-11-25T20:38:20.000Z","size":4760,"stargazers_count":25,"open_issues_count":0,"forks_count":6,"subscribers_count":66,"default_branch":"master","last_synced_at":"2025-04-12T15:08:19.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://weston.ruter.net/2013/09/16/config-driven-wordpress-at-pdxwp/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xwp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-15T04:48:16.000Z","updated_at":"2023-07-10T16:40:58.000Z","dependencies_parsed_at":"2022-09-13T22:10:19.624Z","dependency_job_id":null,"html_url":"https://github.com/xwp/config-driven-wp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fconfig-driven-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fconfig-driven-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fconfig-driven-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xwp%2Fconfig-driven-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xwp","download_url":"https://codeload.github.com/xwp/config-driven-wp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586235,"owners_count":21128997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:19:09.941Z","updated_at":"2025-04-12T15:08:26.548Z","avatar_url":"https://github.com/xwp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Config-Driven WordPress\n\nThis repo contains a model for how WordPress projects can be structured in a way that\nmaximizes configurability and minimizes redundancy. This specific structure is what we\noften use at [X-Team](http://x-team.com/wordpress/).\n\n## Dev Setup\n\nYou can get up and running quickly via a [fork][1] of [varying-vagrant-vagrants][2].\nFollow the [First Vagrant Up][3] instructions, but instead of cloning from the **10up** repo, \nclone from the **x-team** fork and checkout the `auto-site-setup` branch:\n\n```sh\ngit clone git@github.com:x-team/varying-vagrant-vagrants.git vvv\ncd vvv\ngit checkout auto-site-setup\nvagrant up\n```\n\nIf you are already using VVV, you can just add the x-team remote and checkout (or merge from) the branch:\n\n```sh\ngit remote add -f x-team git@github.com:x-team/varying-vagrant-vagrants.git\ngit checkout -b auto-site-setup x-team/auto-site-setup\n```\n\nYou can proceed to add this repo:\n\n```sh\ncd www\ngit clone git@github.com:x-team/config-driven-wp.git config-driven-wp.dev\ncd config-driven-wp.dev\necho vvv \u003e config/active-env\nvagrant reload --provision\n```\n\nOnce this finishes (and you've added `vvv.config-driven-wp.dev` to your `hosts` file), you should be able to \naccess **[vvv.config-driven-wp.dev](http://vvv.config-driven-wp.dev/)** from your browser.\n\n## Test DB Dump Updates\n\nThis repo includes a lightweight test database dump which contains the necessary content to test the features of the site.\nIn the course of development, if you want to commit some change to the database, first connect with\nany other developers who are currently working on the site and obtain a \"verbal file lock\" on `database/vvv-data.sql`, \nas merging SQL cannot be done cleanly (see also [`.gitattributes`](.gitattributes) which explicitly includes `*.sql merge=binary`).\nOnce you're clear to commit your changes to the database dump, run:\n\n```sh\nbin/dump-db-vvv\ngit add database/vvv-data.sql\ngit commit -m \"Add some content X\"\ngit push\n```\n\nThen let the other developers know to:\n\n```sh\ngit pull\nbin/load-db-vvv\n```\n\nDo not commit a production database dump! This committed database dump is intended to be lightweight, to have\njust the minimum of content to facilitate development and testing. Committing a large database dump will greatly\nincrease the repository size.\n\nIf any commands complain about needing to be run in Vagrant, you first can `vagrant ssh` then `cd /srv/www/config-driven-wp.dev`\nto run the command. Or, you can set up [vassh](https://github.com/x-team/vassh) on your system which\nallows you to prefix any command on your system to have it executed at the current working directory in the vagrant\nenvironment. For example:\n\n```sh\nvassh wp core upgrade\nvassh bin/dump-db-vvv\n```\n\nYou can also use the `vasshin` command similarly—called without arguments it will drop you into the current directory\nin vagrant (not the `vagrant` user's home directory); called with an command argument, it will execute the command in \nthe Vagrant environment with full interactive TTY mode and colored output.\n\n## WordPress Superadmin User\n\nThis user is only for the database dump committed in this repo and does not correspond to any user credentials on any public site:\n\nUser: `admin`  \nPass: `password`\n\n## License ##\n\nAs with WordPress core, all code in this repo is [licensed GPLv2+](http://wordpress.org/about/license/).\n\n[1]: https://github.com/x-team/varying-vagrant-vagrants/tree/auto-site-setup\n[2]: https://github.com/10up/varying-vagrant-vagrants\n[3]: https://github.com/x-team/varying-vagrant-vagrants/tree/auto-site-setup#the-first-vagrant-up\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fconfig-driven-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxwp%2Fconfig-driven-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxwp%2Fconfig-driven-wp/lists"}