misc: updateServer 시 좀 더 자세한 메시지 출력
This commit is contained in:
+6
-3
@@ -59,9 +59,10 @@ function genJS($server)
|
|||||||
|
|
||||||
exec(($command), $output, $result_code);
|
exec(($command), $output, $result_code);
|
||||||
if ($result_code != 0) {
|
if ($result_code != 0) {
|
||||||
|
array_unshift($output, "genJS: ${server}");
|
||||||
Json::die([
|
Json::die([
|
||||||
'result' => false,
|
'result' => false,
|
||||||
'reason' => $output
|
'reason' => join(", ", $output)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,9 +91,10 @@ function tryComposerInstall()
|
|||||||
|
|
||||||
exec($runCode, $output, $result_code);
|
exec($runCode, $output, $result_code);
|
||||||
if ($result_code != 0) {
|
if ($result_code != 0) {
|
||||||
|
array_unshift($output, 'composer install');
|
||||||
Json::die([
|
Json::die([
|
||||||
'result' => false,
|
'result' => false,
|
||||||
'reason' => $output
|
'reason' => join(", ", $output)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,9 +146,10 @@ function tryNpmInstall()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($result_code != 0) {
|
if ($result_code != 0) {
|
||||||
|
array_unshift($output, 'node install');
|
||||||
Json::die([
|
Json::die([
|
||||||
'result' => false,
|
'result' => false,
|
||||||
'reason' => $output
|
'reason' => join(", ", $output)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user