]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7037 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Aug 2024 14:30:30 +0000 (16:30 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Aug 2024 14:30:30 +0000 (16:30 +0200)
app/Jobs/HostingUpdate.php
app/Models/FluidbookExternalInstallServer.php

index 6f12bbbe2713860af3365b0936d3f6c2f6b3ef6e..f3df36298209cb3d0cd82dc65a1a1a5fe3e750fb 100644 (file)
@@ -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, [
index 659f76c467142bd4066112dd1dd32d47f94d6aaf..7279be52554c983c67a835468de4677b83b6a9fe 100644 (file)
@@ -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;