Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions sites/upsun/src/get-started/stacks/drupal.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ They provide all of the core concepts and common commands you need to know befor

It should also be noted that this guide works for the following variations of Drupal:

- [v10.x](https://www.drupal.org/project/drupal/releases/10.3.12)

- [v11.x](https://www.drupal.org/project/drupal/releases/11.1.2)

- [v10.x](https://www.drupal.org/project/drupal/releases/10.3.12)
- [CMS](https://new.drupal.org/docs/drupal-cms/get-started/install-drupal-cms)

{{< /note >}}
Expand Down Expand Up @@ -164,8 +162,8 @@ export PRIMARY_URL="$(echo "$PLATFORM_ROUTES" | base64 --decode | jq -r 'to_entr
export DRUSH_OPTIONS_URI="$PRIMARY_URL"
```

## `settings.php`
Open `web/sites/default/settings.php` and append the following to the bottom of that file.
## `default.settings.php`
Open `web/sites/default/default.settings.php` and append the following to the bottom of that file.

```php {location="web/sites/default/settings.php"}
// Upsun configuration
Expand Down Expand Up @@ -310,6 +308,21 @@ Create the `config/sync` empty directory referenced in the settings file:
mkdir -p config/sync && touch config/sync/.gitkeep
```

## add `config/sync` mount
Be aware that after the `build`, it creates a read-only system, which means that you need to define a [mount](/create-apps/image-properties/mounts.md) for any location where your application needs write access.

Update your ``.upsun/config.yaml`` and add the following ``config/sync`` mount:

```yaml {location="{{< vendor/configfile "apps" >}}",linenos=table,hl_lines=["4"],linenostart=1}
applications:
drupal:
#...
mounts:
#...
config/sync:
source: storage
```

## Deploy changes

Now commit all of the above changes and push to {{% vendor/name %}}.
Expand Down
Loading