|
@@ -294,7 +294,7 @@ class SiteController {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
// Deployment from dev to prod
|
|
// 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) {
|
|
if ($cpReturnCode !== 0) {
|
|
|
http_response_code(500);
|
|
http_response_code(500);
|
|
|
echo json_encode(['error' => 'Failed to copy dev installation into prod directory', 'details' => implode("\n", $cpOutput)]);
|
|
echo json_encode(['error' => 'Failed to copy dev installation into prod directory', 'details' => implode("\n", $cpOutput)]);
|