From: Vincent Vanwaelscappel Date: Mon, 19 Aug 2024 14:30:30 +0000 (+0200) Subject: wait #7037 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d45c95e4613317f0582c03e8d9b439b49da6cfb5;p=fluidbook-toolbox.git wait #7037 @0.5 --- diff --git a/app/Jobs/HostingUpdate.php b/app/Jobs/HostingUpdate.php index 6f12bbbe2..f3df36298 100644 --- a/app/Jobs/HostingUpdate.php +++ b/app/Jobs/HostingUpdate.php @@ -38,6 +38,8 @@ class HostingUpdate extends Base foreach ($servers as $server) { + /** @var FluidbookExternalInstallServer $server */ + $server->updateHtaccess(); $s = $d . 'server-' . $server->id; Files::copy($r . 'server', $s); Files::recursiveReplaceStringInDir($s, [ diff --git a/app/Models/FluidbookExternalInstallServer.php b/app/Models/FluidbookExternalInstallServer.php index 659f76c46..7279be525 100644 --- a/app/Models/FluidbookExternalInstallServer.php +++ b/app/Models/FluidbookExternalInstallServer.php @@ -95,7 +95,7 @@ class FluidbookExternalInstallServer extends ExternalServer return parent::onSaved(); } - protected function updateHtaccess() + public function updateHtaccess() { if ($this->isHosting()) { $redirections = Json::isJson($this->redirections) ? json_decode($this->redirections, true) : $this->redirections;