ironstar-io / tokaido

Zero-conf Drupal Local Development Environments with Docker
https://tokaido.io
BSD 3-Clause "New" or "Revised" License
57 stars 10 forks source link

Support Acquia site factory (ASF) sites #228

Closed eleonel closed 4 years ago

eleonel commented 4 years ago

Acquia site factory have the own way to edit the settings.php file normally located in docroot/sites/default/settings.php

When using Acquia Cloud Site Factory, you cannot directly modify your website’s settings.php file, but you can make changes to values in settings.php using hooks at the beginning and end of the settings.php file. [Source]

After running tok up I can see some new lines inside the settings.php file:

/*
 * Generated by Tokaido
 */

if (file_exists($app_root . '/' . $site_path . '/settings.tok.php')) {
  include $app_root . '/' . $site_path . '/settings.tok.php';
}

/*
 * END Generated by Tokaido
 */

One way to solve this is manually adding that lines as a hook file inside the factory-hooks/post-settings-php folder but this is only relevant for ASF sites so that's why I need to check if anyone have any other idea.

Thanks.

ironmike-au commented 4 years ago

If you make this change in factory-hooks/post-settings-php does the site work as you expect? I'm curious to know if there are other unique things we'd have to change to support ASF

eleonel commented 4 years ago

Hi @otakumike

yes, but after working a while with the ACSF repository structure I'm thinking to don't use it as a working copy, I will use the repository as a deployment repository so I don't longer need this change.

ACSF repositories are very different than a normal drupal folder structure and you need to do so many unusual tricks to have a local dev environment.