Skip to content

Server Configuration

Application servers in the example environment are configured through a startup script that runs once when the server boots, pulling its configuration from the environment's configuration repository.

A minimal example of the startup sequence looks like this:

```bash

!/usr/bin/env bash

set -euo pipefail

fetch-config --environment "$ENVIRONMENT_NAME" --output /etc/example-app/config.yaml install-monitoring-agent systemctl enable --now example-app.service ```

Servers are treated as disposable: if one becomes unhealthy, it is replaced by a fresh instance rather than repaired in place. This keeps configuration drift from accumulating over time.