mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Fixed error detection
This commit is contained in:
parent
3567e32da9
commit
b05ecbb33a
1 changed files with 3 additions and 4 deletions
|
|
@ -142,12 +142,11 @@ $cli
|
||||||
|
|
||||||
$stdout = '';
|
$stdout = '';
|
||||||
$stderr = '';
|
$stderr = '';
|
||||||
|
$exit = Console::execute("docker-compose -f {$path}/docker-compose.yml up -d --remove-orphans", null, $stdout, $stderr);
|
||||||
|
|
||||||
Console::execute("docker-compose -f {$path}/docker-compose.yml up -d --remove-orphans", null, $stdout, $stderr);
|
if ($exit !== 0) {
|
||||||
|
|
||||||
if ($stderr !== '') {
|
|
||||||
var_dump($stderr);
|
|
||||||
Console::error("Failed to install Appwrite dockers");
|
Console::error("Failed to install Appwrite dockers");
|
||||||
|
exit($exit);
|
||||||
} else {
|
} else {
|
||||||
Console::success("Appwrite installed successfully");
|
Console::success("Appwrite installed successfully");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue