Drupal website for OpenClaw integration with Drupal Switzerland.
- Docker Desktop (Mac/Windows) or Docker + Docker Compose (Linux)
- ddev
- Clone this repository
- Install dependencies:
cd claw-drupal-ch
ddev start
ddev composer install- Install Drupal:
ddev drush si standard --site-name="Claw Drupal CH" --account-name=admin --account-pass=admin -y- Access the site:
- Site: https://claw-drupal-ch.ddev.site
- Admin: https://claw-drupal-ch.ddev.site/user (admin/admin)
# Start ddev
ddev start
# Stop ddev
ddev stop
# SSH into container
ddev ssh
# Run drush commands
ddev drush status
ddev drush cr
# Import database
ddev import-db --file=/path/to/dump.sql.gz
# Export database
ddev export-db --file=dump.sql.gz- Lagoon CLI installed
- Access to amazee.io Lagoon
- Project created:
claw-drupal-ch
This repository is configured to deploy to Lagoon with:
- Production environment:
mainbranch → claw.drupal.ch - Automatic HTTPS via Let's Encrypt
- Post-deployment tasks:
drush updb -y && drush cr
Set in Lagoon UI or via CLI:
lagoon add variable -p claw-drupal-ch -N production -n LAGOON_ENVIRONMENT_TYPE -v productionclaw-drupal-ch/
├── .ddev/ # ddev configuration
├── .lagoon.yml # Lagoon configuration
├── docker-compose.yml # Docker services for Lagoon
├── lagoon/ # Dockerfiles
│ ├── cli.dockerfile
│ ├── nginx.dockerfile
│ └── php.dockerfile
├── composer.json # PHP dependencies
├── web/ # Drupal webroot (created by composer install)
│ ├── core/
│ ├── modules/
│ ├── themes/
│ └── sites/
└── README.md # This file
After initial setup:
- Configure Drupal settings for Lagoon in
web/sites/default/settings.php - Enable amazee.io integration module:
ddev drush en amazeeio -y - Commit and push to trigger Lagoon deployment
- Set up SSH keys for deployment access
- Lagoon Docs: https://docs.lagoon.sh/
- ddev Docs: https://ddev.readthedocs.io/
- Drupal Switzerland: https://drupal.ch/