From: Vincent Vanwaelscappel Date: Wed, 6 Dec 2023 16:12:02 +0000 (+0100) Subject: wip #6472 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3681b3510919036a68c3f4d38c0c9d6d7bf8f384;p=fluidbook-toolbox.git wip #6472 @2 --- diff --git a/app/Fluidbook/Packager/Download.php b/app/Fluidbook/Packager/Download.php index afd341c26..f35047edf 100644 --- a/app/Fluidbook/Packager/Download.php +++ b/app/Fluidbook/Packager/Download.php @@ -99,7 +99,7 @@ class Download extends DownloadBase $showTextIfNotEmail = false; $actions = []; if ($this->action === 'download' || $this->action === 'scormcloud') { - $actions = ['Télécharger' => $url]; + $actions = [__('Télécharger') => $url]; $res[] = $url; if ($this->action === 'scormcloud') { @@ -108,9 +108,10 @@ class Download extends DownloadBase $actions[__('Tester sur SCORM Cloud')] = $scormURL; $res[] = $url; } catch (\Exception $e) { - + Log::error($e); + $text .= "\n\n" . __('Une erreur s\'est produite lors de l\'envoi sur SCORM Cloud (App ID :appid) : :error', ['error' => $e->getMessage(), 'appid' => env('SCORM_CLOUD_APP_ID')]); + $showTextIfNotEmail = true; } - $text = __('Une erreur s\'est produite lors de l\'envoi sur SCORM Cloud (App ID :appid) : :error', ['error' => $e->getMessage(), 'appid' => env('SCORM_CLOUD_APP_ID')]); } } else if ($this->action === 'install') { $s = $this->entry->install_online; diff --git a/app/Services/ScormCloud.php b/app/Services/ScormCloud.php index 71ee084dc..e240c376e 100644 --- a/app/Services/ScormCloud.php +++ b/app/Services/ScormCloud.php @@ -64,7 +64,11 @@ class ScormCloud } while ($jobResult->getStatus() == V2\Model\ImportJobResultSchema::STATUS_RUNNING) { sleep(1); - $jobResult = $courseAPI->getImportJobStatus($jobId->getResult()); + try { + $jobResult = $courseAPI->getImportJobStatus($jobId->getResult()); + } catch (\Exception $e) { + break; + } } if ($jobResult->getStatus() == V2\Model\ImportJobResultSchema::STATUS_ERROR) { diff --git a/bin/startup.sh b/bin/startup.sh index 4aa50f28f..c2f062f07 100644 --- a/bin/startup.sh +++ b/bin/startup.sh @@ -66,6 +66,7 @@ if mountpoint -q "/application/protected/fluidbookpublication/docs"; then : else sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@godzilla.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs + #sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -o cache=no -o sshfs_sync -o uid=1002 -o gid=33 -o allow_other root@dracula.cubedesigners.com:/data/fluidbook/docs /application/protected/fluidbookpublication/docs fi # Launch PHP diff --git a/resources/tools/dockerwebcontainer/template/images/php-fpm/Dockerfile b/resources/tools/dockerwebcontainer/template/images/php-fpm/Dockerfile index 498565a74..a02c3060c 100644 --- a/resources/tools/dockerwebcontainer/template/images/php-fpm/Dockerfile +++ b/resources/tools/dockerwebcontainer/template/images/php-fpm/Dockerfile @@ -25,7 +25,6 @@ RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesourc RUN apt update RUN apt -y --no-install-recommends install \ - unzip \ git \ php$phpversion-apcu \ php$phpversion-cli \ @@ -53,7 +52,7 @@ RUN apt -y --no-install-recommends install \ php$phpversion-fpm \ less nano wget nodejs -RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client +RUN apt -y --no-install-recommends install nodejs sudo openssh-server rsyslog cron mariadb-client zip unzip imagemagick RUN apt -y --no-install-recommends install locales RUN sed -i '/$locale.UTF-8/s/^# //g' /etc/locale.gen && \