Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Added file path configuration. #179

Closed
wants to merge 1 commit into from

Conversation

danepowell
Copy link
Contributor

ACSF doesn't have any documentation on how to configure private files. This is the solution that Rok endorsed. The public documentation should be updated to reflect this soon.

$settings['file_private_path'] = "/mnt/gfs/$ah_group.$ah_env/files-private/$acsf_db_name";
}
else {
$settings['file_private_path'] = "/mnt/files/$ah_group.$ah_env/files-private";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is another place where we should consider multisite. D7 version would look something like /mnt/files/' . $_ENV['AH_SITE_NAME'] . '/' . conf_path() . '/files-private', need to test the exact D8 syntax, but https://www.drupal.org/node/2275139 has some background since conf_path() is deprecated.

Copy link
Contributor Author

@danepowell danepowell Jun 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use $site_path instead of $conf_path (the ACE settings files provide this variable.)

The bigger problem is how does files.settings.php know if we are a single-site or multisite install? We probably need a parameter in project.yml, as well as a way to propagate that variable into settings files. Or I guess we could just treat every site as multisite. I don't know if there's any harm in that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the latter is a safer assumption, but I do love being explicit.

Copy link
Contributor

@greylabel greylabel Jun 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or I guess we could just treat every site as multisite. I don't know if there's any harm in that.

I feel this is the right way to go.

If we can avoid using Acquia specific variables like $ah_group.$ah_env and use Drupal API functions like conf_path() instead this code will be a lot more portable and work on local, CI, as well as Acquia. We would still need to abstract the {path_to_docroot} piece at the beginning of these paths, though.

@grasmash grasmash added the Enhancement A feature or feature request label Sep 2, 2016
@grasmash
Copy link
Contributor

grasmash commented Sep 2, 2016

Closing in favor of #359.

@grasmash grasmash closed this Sep 2, 2016
@danepowell danepowell deleted the feature/files-settings branch December 6, 2017 00:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants