|
|
@@ -135,6 +135,8 @@ class DeployDevController {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+/*
|
|
|
//Create MySQL Database
|
|
|
if ($GLOBALS['debug'] == true) { error_log("creating database: " . $databaseName); }
|
|
|
$sqlCommand = "sudo mysql -e \"create database $databaseName;\" 2>&1";
|
|
|
@@ -168,7 +170,6 @@ class DeployDevController {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
// Deployment of the Concrete CMS Application
|
|
|
if ($GLOBALS['debug'] == true) { error_log("Copy master directory to $webDir"); }
|
|
|
exec("sudo /usr/bin/cp -r /var/www/master/* $webDir 2>&1",$cpOutput,$cpReturnCode);
|
|
|
@@ -255,6 +256,7 @@ class DeployDevController {
|
|
|
echo json_encode(['error' => 'Failed to chown web dir', 'details' => implode("\n", $chownOutput)]);
|
|
|
return;
|
|
|
}
|
|
|
+/*
|
|
|
$sqlCommand = "sudo mysql \"drop database $databaseName;\" 2>&1";
|
|
|
exec($sqlCommand,$mysqlOutput,$mysqlReturnCode);
|
|
|
if ($mysqlReturnCode !== 0) {
|
|
|
@@ -307,7 +309,7 @@ class DeployDevController {
|
|
|
echo json_encode(['error' => 'Failed to chown web dir', 'details' => implode("\n", $chownOutput)]);
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+*/
|
|
|
echo json_encode(['success' => 'Development site deployed successfully']);
|
|
|
}
|
|
|
|