Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement git2consul #4

Open
misterbisson opened this issue Apr 5, 2016 · 0 comments
Open

Implement git2consul #4

misterbisson opened this issue Apr 5, 2016 · 0 comments

Comments

@misterbisson
Copy link
Contributor

git2consul would be a great alternative to the _env 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:

{
    "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:

{
    "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" },

        {}
    ]
}
@misterbisson misterbisson mentioned this issue Apr 5, 2016
misterbisson added a commit that referenced this issue Apr 7, 2016
cleanup after renaming and Containerbuddy 1.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant