This PR adds two predefined server metadata environment variables for application deployments:
COOLIFY_SERVER_NAMECOOLIFY_SERVER_UUIDThe injection is intentionally minimal and runtime-only, implemented in the existing ApplicationDeploymentJob::generate_coolify_env_variables() path.
Issue #7738 asks for predefined server variables so an app can identify where it runs in multi-server deployments.
COOLIFY_SERVER_NAME and COOLIFY_SERVER_UUID for runtime env generation.Added tests/Unit/ApplicationDeploymentServerEnvVariablesTest.php with coverage for:
docker run --rm -t --user root \
-v /var/www/html:/var/www/html \
-w /var/www/html docker.io/serversideup/php:8.4-fpm-nginx \
sh -lc "install-php-extensions sockets >/tmp/install-sockets.log 2>&1 && php artisan test --compact tests/Unit/ApplicationDeploymentServerEnvVariablesTest.php"
/claim #7738
Fraktal DeFi DAO
@FraktalDeFiDAO
Praveen Pendyala
@pkpio