1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Updated setup script

This commit is contained in:
Eldad Fux 2020-10-25 15:48:04 +02:00
parent e923126ff7
commit c69655a297
3 changed files with 14 additions and 4 deletions

View file

@ -117,6 +117,7 @@ RUN \
imagemagick-dev \
certbot \
docker-cli \
docker-compose \
libmaxminddb \
libmaxminddb-dev \
&& pecl install imagick yaml \

View file

@ -98,11 +98,12 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo
try {
$app->run($request, $response);
} catch (\Throwable $th) {
Console::error('[Error] Type: '.get_class($th));
Console::error('[Error] Message: '.$th->getMessage());
Console::error('[Error] File: '.$th->getFile());
Console::error('[Error] Line: '.$th->getLine());
if(App::isDevelopment()) {
var_dump(get_class($th));
var_dump($th->getMessage());
var_dump($th->getFile());
var_dump($th->getLine());
$swooleResponse->end('error: '.$th->getMessage());
}

View file

@ -142,10 +142,18 @@ $cli
$stdout = '';
$stderr = '';
Console::log("Running \"docker-compose -f {$path}/docker-compose.yml up -d --remove-orphans\"");
$files1 = scandir($path);
print_r($files1);
$exit = Console::execute("docker-compose -f {$path}/docker-compose.yml up -d --remove-orphans", null, $stdout, $stderr);
if ($exit !== 0) {
Console::error("Failed to install Appwrite dockers");
Console::error($stderr);
exit($exit);
} else {
Console::success("Appwrite installed successfully");