Skip to content

kalwar/d10live-pantheon

Repository files navigation

d10live-pantheon

Deployment to Pantheon

A very simple skeleton of Drupal 10 together with pantheon site powering your live site, a website about whatever you want it to be.

Local site setup

Do the lando setup, make sure you can clone the repo from pantheon site and run locally drupal 10 with lando

Making site changes

Configuration changes

Drupal 10 configuration (such as content type and field definitions) is managed through yml files. These files live in the config directory.

After you make configuration changes locally (such as adding a field to a content type), you can then export those changes by running lando drush cex in the project directory.

Import site database, clear caches, and apply site configuration from code.

  1. lando db-export
  2. You will get database.sql.gz file in root of your project folder
  3. Copy database dump generated e.g. database.sql.gz dump to pantheon site Database/Files under "Import" section
  4. Make sure you have File option selected
  5. Your lando drupal local site configurations must match with pantheon site

Deployment to Pantheon via Github Actions

This site's main branch is automatically committed and deployed to Pantheon's dev environment with a Github action workflow file. The pantheon site name and ID are configured in that file.

It needs these secrets added to this repository's Github settings:

REACT24K

Testing github ci/cd

Releases

No releases published

Packages

No packages published

Languages