feat(Deployment): Integrate Ansible deployment via PHP deployment pipeline
- Create AnsibleDeployStage using framework's Process module for secure command execution - Integrate AnsibleDeployStage into DeploymentPipelineCommands for production deployments - Add force_deploy flag support in Ansible playbook to override stale locks - Use PHP deployment module as orchestrator (php console.php deploy:production) - Fix ErrorAggregationInitializer to use Environment class instead of $_ENV superglobal Architecture: - BuildStage → AnsibleDeployStage → HealthCheckStage for production - Process module provides timeout, error handling, and output capture - Ansible playbook supports rollback via rollback-git-based.yml - Zero-downtime deployments with health checks
This commit is contained in:
22
docker/php/zz-docker.conf
Normal file
22
docker/php/zz-docker.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
[global]
|
||||
daemonize = no
|
||||
error_log = /proc/self/fd/2
|
||||
|
||||
[www]
|
||||
; Unix user/group of processes
|
||||
user = appuser
|
||||
group = appuser
|
||||
|
||||
; The address on which to accept FastCGI requests.
|
||||
listen = 9000
|
||||
|
||||
; Clear environment in FPM workers
|
||||
clear_env = no
|
||||
|
||||
; Catch output from PHP workers
|
||||
catch_workers_output = yes
|
||||
|
||||
; Redirect worker stdout and stderr into main error log
|
||||
access.log = /proc/self/fd/2
|
||||
php_admin_value[error_log] = /proc/self/fd/2
|
||||
php_admin_flag[log_errors] = on
|
||||
Reference in New Issue
Block a user