]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6775 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Mar 2024 18:10:33 +0000 (19:10 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Mar 2024 18:10:33 +0000 (19:10 +0100)
app/Http/Controllers/Admin/Operations/Tools/StaticSiteUploader.php

index 8e7a6d37eaa23e13144b810de853c04cfcdbaca6..155b2faf6b0f21ed7b1cb089406f5ec78bf1a9d5 100644 (file)
@@ -15,7 +15,7 @@ trait StaticSiteUploader
     protected function _getSites()
     {
         return [
-            'cubedesigners-v8' => ['label' => __('Cubedesigners V8'), 'server' => 'godzilla.cubedesigners.com']
+            'cubedesigners-v8' => ['label' => __('Cubedesigners V8'), 'server' => 'godzilla.cubedesigners.com', 'url' => 'https://v8.cubedesigners.com/']
         ];
     }
 
@@ -53,9 +53,10 @@ trait StaticSiteUploader
         rename($file->getPathname(), $zip);
         $tmp = Files::tmpdir();
         Zip::extract($zip, $tmp);
-        $dest='staticupload@' . $site['server'] . ':/home/staticupload/' . $siteId;
+        $dest = 'staticupload@' . $site['server'] . ':/home/staticupload/' . $siteId;
         $rsync = new Rsync($tmp, $dest);
         $rsync->execute();
-        $rsync->dd();
+
+        return redirect($site['url']);
     }
 }