]> BookStack Code Mirror - bookstack/blobdiff - config/database.php
#47 - Fixes the issues with the test case.
[bookstack] / config / database.php
index 20d461fc9d7f265a2be1ebeb789d3114f6e96138..92c7682450a68317015e6559380e34cfeaf414db 100644 (file)
@@ -82,10 +82,10 @@ return [
 
         'mysql_testing' => [
             'driver'    => 'mysql',
-            'host'      => 'localhost',
+            'host'      => '127.0.0.1',
             'database'  => 'bookstack-test',
-            'username'  => 'bookstack-test',
-            'password'  => 'bookstack-test',
+            'username'  => env('MYSQL_USER', 'bookstack-test'),
+            'password'  => env('MYSQL_PASSWORD', 'bookstack-test'),
             'charset'   => 'utf8',
             'collation' => 'utf8_unicode_ci',
             'prefix'    => '',
@@ -139,6 +139,6 @@ return [
     |
     */
 
-    'redis' => $redisConfig,
+    'redis' => env('REDIS_SERVERS', false) ? $redisConfig : [],
 
 ];