What does the 'ghe-config-apply' command do in GitHub Enterprise Server?
Select an answer to reveal the explanation.
Short Explanation and Infographic
After you make changes to GHES settings in the Management Console or via ghe-config, they don't take effect immediately. Running ghe-config-apply makes GitHub read the new configuration and restart whatever services need updating. It's the 'apply and reload' button.
Full explanation below image
Full Explanation
The 'ghe-config-apply' command in GitHub Enterprise Server processes pending configuration changes and applies them to the running instance. When administrators make changes via the Management Console or the ghe-config command-line tool, those changes are staged but not immediately applied. Running 'ghe-config-apply' causes GHES to: (1) Read all pending configuration changes. (2) Validate the configuration for errors. (3) Restart any services that need to pick up the new configuration. (4) Report progress and completion. This command is particularly important after changes to authentication settings, network configuration, email settings, and SSL certificates. The Management Console's 'Save settings' button also triggers ghe-config-apply under the hood. Changes require this step to take effect.