drupal-project icon indicating copy to clipboard operation
drupal-project copied to clipboard

[QUESTION] Is ScriptHandler::createRequiredFiles needed?

Open back-2-95 opened this issue 6 years ago • 0 comments

I played with Drupal 8.7.x and Travis. I did not have ScriptHandler. Still settings.php and files folder got created automatically:

This is command run during Travis build:

0.01s$ ls -la web/sites/default
total 88
dr-xr-xr-x 3 travis travis  4096 Jul 25 07:58 .
drwxrwxr-x 3 travis travis  4096 Jul 25 07:57 ..
-rw-rw-r-- 1 travis travis  6762 Jul 25 07:58 default.services.yml
-rw-rw-r-- 1 travis travis 31342 Jul 25 07:58 default.settings.php
drwxrwxr-x 7 travis travis  4096 Jul 25 07:58 files
-rw-rw-r-- 1 travis travis     8 Jul 25 07:57 .keepme
-r--r--r-- 1 travis travis 31812 Jul 25 07:58 settings.php

Apparently automatically created settings.php got appended with mysql settings provided with drush si --db-url="mysql://[email protected]/drupal":

$databases['default']['default'] = array (
  'database' => 'drupal',
  'username' => 'root',
  'password' => '',
  'prefix' => '',
  'host' => '127.0.0.1',
  'port' => '',
  'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' => 'mysql',
);
$config_directories['sync'] = 'sites/default/files/config_IWbTIBTB87sm6MwdTn8VY0UesE4hR3EqDylws1DCtoG-APRn8gFc33WCQlWWyRRKhP9sY3uRMQ/sync';

Maybe it's because I have web/sites/default folder in git with .keepme file? I don't have files folder nor settings.php in web/sites/default in git.

back-2-95 avatar Jul 25 '19 08:07 back-2-95