A very simple skeleton of Drupal 10 together with pantheon site powering your live site, a website about whatever you want it to be.
Do the lando setup, make sure you can clone the repo from pantheon site and run locally drupal 10 with lando
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.
lando db-export
- You will get database.sql.gz file in root of your project folder
- Copy database dump generated e.g.
database.sql.gz
dump to pantheon site Database/Files under "Import" section - Make sure you have File option selected
- Your lando drupal local site configurations must match with pantheon site
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:
- PANTHEON_SSH_PRIVATE_KEY
(A Private SSH key paired to a Public SSH key added to Pantheon) - TERMINUS_TOKEN
(A generated Pantheon Machine token)
Testing github ci/cd