From 83c2fc918fdd1b42279d3d944291813822f96ea2 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 14 May 2022 22:20:34 +0900 Subject: [PATCH] =?UTF-8?q?misc:=20updateServer=20=EC=8B=9C=20=EC=A2=80=20?= =?UTF-8?q?=EB=8D=94=20=EC=9E=90=EC=84=B8=ED=95=9C=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- j_updateServer.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/j_updateServer.php b/j_updateServer.php index eedb8169..0f414812 100644 --- a/j_updateServer.php +++ b/j_updateServer.php @@ -59,9 +59,10 @@ function genJS($server) exec(($command), $output, $result_code); if ($result_code != 0) { + array_unshift($output, "genJS: ${server}"); Json::die([ 'result' => false, - 'reason' => $output + 'reason' => join(", ", $output) ]); } } @@ -90,9 +91,10 @@ function tryComposerInstall() exec($runCode, $output, $result_code); if ($result_code != 0) { + array_unshift($output, 'composer install'); Json::die([ 'result' => false, - 'reason' => $output + 'reason' => join(", ", $output) ]); } @@ -144,9 +146,10 @@ function tryNpmInstall() } if ($result_code != 0) { + array_unshift($output, 'node install'); Json::die([ 'result' => false, - 'reason' => $output + 'reason' => join(", ", $output) ]); }