standalone: tweak settings config
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Fri, 10 Feb 2023 13:24:40 +0000 (13:24 +0000)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Fri, 23 Jun 2023 10:49:20 +0000 (11:49 +0100)
setup/plugins/init/Standalone.civi-setup.php

index cce63d6883f36b534121b8a9d660e2903c31ecf4..1273b953b9b11498e03c414cecf8b7ebd301c369 100644 (file)
@@ -45,12 +45,13 @@ if (!defined('CIVI_SETUP')) {
     print "\n-------------------------\nSet model values:\n" . json_encode($model->getValues(), JSON_PRETTY_PRINT) . "\n-----------------------------\n";
 
     // Compute DSN.
-    $model->db = $model->cmsDb = [
-      'server' => 'mysql',
-      'username' => 'loner',
-      'password' => 'somepass',
-      'database' => 'standalone_civicrm',
-    ];
+    print "=======================\n". json_encode(['model' => $model->getValues(), 'server' => $_SERVER], JSON_PRETTY_PRINT) ."\n";
+    // $model->db = $model->cmsDb = [
+    //   'server' => 'mysql',
+    //   'username' => 'loner',
+    //   'password' => 'somepass',
+    //   'database' => 'standalone_civicrm',
+    // ];
 
     // Compute URLs (@todo?)
     // $model->cmsBaseUrl = $_SERVER['HTTP_ORIGIN'] ?: $_SERVER['HTTP_REFERER'];