Updated setup script
This commit is contained in:
parent
e923126ff7
commit
c69655a297
|
@ -117,6 +117,7 @@ RUN \
|
|||
imagemagick-dev \
|
||||
certbot \
|
||||
docker-cli \
|
||||
docker-compose \
|
||||
libmaxminddb \
|
||||
libmaxminddb-dev \
|
||||
&& pecl install imagick yaml \
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue