From 2ba161fb5b90baae4a39aebc14db8677a8587c1c Mon Sep 17 00:00:00 2001 From: pieter Date: Sat, 22 Nov 2025 13:25:07 +0000 Subject: [PATCH] =?UTF-8?q?templates/deployment.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/deployment.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 336f6a9..350b39a 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -79,15 +79,15 @@ define('NONCE_SALT', getenv('WP_NONCE_SALT')); // ** WordPress Site URLs - Dynamic based on HTTP_HOST ** // if ( defined( 'WP_CLI' ) ) { - $_SERVER['HTTP_HOST'] = '127.0.0.1'; + $_SERVER['HTTP_HOST'] = '127.0.0.1'; } // Determine protocol (HTTP or HTTPS) $protocol = 'http'; if ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) { - $protocol = 'https'; + $protocol = 'https'; } elseif ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ) { - $protocol = 'https'; + $protocol = 'https'; } define( 'WP_HOME', $protocol . '://' . $_SERVER['HTTP_HOST'] . '/' ); @@ -111,7 +111,7 @@ define('WP_MAX_MEMORY_LIMIT', '512M'); /* That's all, stop editing! Happy publishing. */ if ( ! defined( 'ABSPATH' ) ) { - define( 'ABSPATH', __DIR__ . '/' ); + define( 'ABSPATH', __DIR__ . '/' ); } require_once ABSPATH . 'wp-settings.php'; @@ -119,6 +119,8 @@ WPCONFIG echo "wp-config.php generated" + echo "wp-config.php generated" + # WordPress CLI のセットアップ echo "Setting up WP-CLI..." curl -o /tmp/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar 2>/dev/null || true