Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

claw.drupal.ch

Drupal website for OpenClaw integration with Drupal Switzerland.

Local Development with ddev

Prerequisites

  • Docker Desktop (Mac/Windows) or Docker + Docker Compose (Linux)
  • ddev

Setup

  1. Clone this repository
  2. Install dependencies:
cd claw-drupal-ch
ddev start
ddev composer install
  1. Install Drupal:
ddev drush si standard --site-name="Claw Drupal CH" --account-name=admin --account-pass=admin -y
  1. Access the site:

Useful Commands

# 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 Deployment

Prerequisites

  • Lagoon CLI installed
  • Access to amazee.io Lagoon
  • Project created: claw-drupal-ch

Deploy to Production

This repository is configured to deploy to Lagoon with:

  • Production environment: main branch → claw.drupal.ch
  • Automatic HTTPS via Let's Encrypt
  • Post-deployment tasks: drush updb -y && drush cr

Environment Variables

Set in Lagoon UI or via CLI:

lagoon add variable -p claw-drupal-ch -N production -n LAGOON_ENVIRONMENT_TYPE -v production

Project Structure

claw-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

Next Steps

After initial setup:

  1. Configure Drupal settings for Lagoon in web/sites/default/settings.php
  2. Enable amazee.io integration module: ddev drush en amazeeio -y
  3. Commit and push to trigger Lagoon deployment
  4. Set up SSH keys for deployment access

Support

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages