Przeglądaj źródła

disable db install

andre 8 miesięcy temu
rodzic
commit
e94aa53fb5
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      controllers/DeployDevController.php

+ 4 - 2
controllers/DeployDevController.php

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