Set default config_sync_directory outside the webroot

Created on 2 December 2022, almost 2 years ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

We have a config/sync directory outside the root but currently it has to be set manually every time we set up the project.

Steps to reproduce

Set up the project. After setup, the config sync directory is something like:
$settings['config_sync_directory'] = 'sites/default/files/config_P0mmr3X3zO6cWP8OO1FywKNhkFdgEjK-C-g9KVNUJPYVL2YykVpdsY93yplpe-nCDYpPH9WoAg/sync';

Proposed resolution

Create a settings.php in an assets directory and use composer scaffolding to scaffold settings.php with our custom version which has the config_sync_directory set to ../config/sync.

πŸ“Œ Task
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada laura.j.johnson@gmail.com Toronto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024