[git2consul](https://github.com/Cimpress-MCP/git2consul) would be a great alternative to the [`_env`](https://github.com/autopilotpattern/wordpress/pull/3/files#diff-743a1b9814db764f9efd83b86874bdf7) being used to inject configuration details to WordPress. This would eliminate the risk that two users might mistakenly have different `_env` files and better allow versioning of the configuration data. My initial attempt at git2consul integration included the following configuration files: `git2consul.json`: ``` json { "version": "0.0.1", "repos": [{ "name": "triton-wordpress", "source_root": "path/in/git/repo", "mode" : "expand_keys", "url": "https://github.com/misterbisson/triton-wordpress.git", "branches": ["progress"], "include_branch_name" : false, "hooks": [{ "type": "polling", "interval": "1" }] }] } ``` `wp-config.json`: ``` json { "config": [ { "site_url": "http://my-site.example.com" }, { "SAVEQUERIES": true }, { "WP_DEBUG": true }, { "WP_DEBUG_DISPLAY": true }, { "AUTH_KEY": "put your unique phrase here" }, { "SECURE_AUTH_KEY": "put your unique phrase here" }, { "LOGGED_IN_KEY": "put your unique phrase here" }, { "NONCE_KEY": "put your unique phrase here" }, { "AUTH_SALT": "put your unique phrase here" }, { "SECURE_AUTH_SALT": "put your unique phrase here" }, { "LOGGED_IN_SALT": "put your unique phrase here" }, { "NONCE_SALT": "put your unique phrase here" }, {} ] } ```
Activity
Merge pull request #4 from autopilotpattern/persnickety