Note
Before you start, check out the Upsun Cloud demo app and the main Getting started guide. They provide all of the core concepts and common commands you need to know before using the materials below.It should also be noted that this guide works for the following variations of Drupal:- The Drupal files in a repository
-
A local copy of that repository where you have selected both
RedisandMariaDBduring the Configure your project portion of the Getting Started guide
Configure
Open the.upsun/config.yaml file that’s been generated and replace with the following:
This configuration is similar to the deployment process for Drupal on Upsun Fixed, however it is slightly updated for Upsun’s configuration.
Variables
Theproject:init command created a .environment file containing environment variables for the two services (MariaDB and Redis). Now append the following Drush configuration to the bottom of that file:
.environment
settings.php
Open web/sites/default/settings.php and append the following to the bottom of that file.
web/sites/default/settings.php
Upsun-specific settings
Then create a new Upsun-specific settings fileweb/sites/default/settings.upsun.php
which should contain the following:
web/sites/default/settings.upsun.php
config/sync
Create the config/sync empty directory referenced in the settings file:
Terminal
Deploy changes
Now commit all of the above changes and push to Upsun Cloud.Terminal