andre 7 months ago
parent
commit
f71f7ef225
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/SiteController.php

+ 1 - 1
controllers/SiteController.php

@@ -294,7 +294,7 @@ class SiteController {
             return;
         }
         // Deployment from dev to prod
-        exec("sudo /usr/bin/cp -a /home/$username/dev.$domain/* /home/$username/$domain/.",$cpOutput,$cpReturnCode);
+        exec("sudo /usr/bin/cp -a /home/$username/dev.$domain /home/$username/$domain",$cpOutput,$cpReturnCode);
         if ($cpReturnCode !== 0) {
             http_response_code(500);
             echo json_encode(['error' => 'Failed to copy dev installation into prod directory', 'details' => implode("\n", $cpOutput)]);