Add detailed logging for health requests in health.php and enhance entrypoint.sh with Apache configuration logging
This commit is contained in:
@@ -98,5 +98,16 @@ else
|
||||
fi
|
||||
|
||||
echo "[flixcooks] Starting Apache..."
|
||||
port_data=$(php -r 'echo json_encode([
|
||||
"env_port" => getenv("PORT") ?: "",
|
||||
"env_host" => getenv("HOST") ?: "",
|
||||
"apache_document_root" => getenv("APACHE_DOCUMENT_ROOT") ?: "",
|
||||
"expected_container_port" => 80,
|
||||
"coolify_hint" => "Application port must be 80",
|
||||
]);')
|
||||
fc_debug_log "H3,H6" "proxy port context before apache start" "$port_data"
|
||||
apache_config_output=$(apache2ctl -S 2>&1 || true)
|
||||
apache_config_data=$(php -r 'echo json_encode(["apache2ctl_S" => $argv[1]]);' -- "$apache_config_output")
|
||||
fc_debug_log "H3,H6" "apache virtualhost config before start" "$apache_config_data"
|
||||
fc_debug_log "H3" "executing web server command" "$(php -r 'echo json_encode(["command" => array_slice($argv, 1)]);' -- "$@")"
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user