This project template is an opinionated fork of the popular Drupal-composer template, configured to automatically deploy code to a Kubernetes cluster using CircleCI. Everything that works with the Drupal-composer project template will work with this repository, so we won't duplicate the documentation here.
- Click "Use this template" to generate a new project,
- select the correct owner,
- name the project as
client-COUNTRYCODE-CLIENT-PROJECT
, - make the repository private (unless the project is public).
- Clone the new project locally and modify it's details:
composer.json
name,silta/silta.yml
values.
- Log in to CircleCI using your Github account and add the new project using existing config.
For additional instructions, please see the Silta documentation.
- Install the latest Lando and read the documentation.
- Update your project name and other Lando Drupal 9 recipe's parameters at
.lando.yml
. - Run
lando start
.
chrome
- uses selenium/standalone-chrome image, uncomment the service definition at.lando.yml
to enable.elasticsearch
- uses Lando Elasticsearch service, uncomment the service definition at.lando.yml
to enable. See.lando/my_elasticsearch.yml
for extending the default configuration with custom settings like allowing CORS requests.kibana
- available at https://kibana-silta.lndo.site. Uses bitnami/kibana image, uncomment the service definition at.lando.yml
to enable.mailhog
- uses Lando MailHog service.node
- uses Lando Node service.
lando
- tools / commands overview.lando grumphp <commands>
- run GrumPHP code quality checks. Modified or new files are checked on git commit, see more atlando grumphp -h
or wunderio/code-quality.lando npm <commands>
- run npm commands.lando phpunit <commands>
- run PHPUnit commands.lando xdebug <mode>
- load Xdebug in the selected mode(s).
- Updating Drupal core.
- Altering scaffold files (
robots.txt
,.htaccess
etc.).
The PHPUnit test framework is predefined in this project, see phpunit.xml
for details. Also, there is a minified web/modules/custom/phpunit_example
module included from examples module for learning purposes.
Use lando phpunit
to run the PHPUnit commands.
- run one test class:
lando phpunit path/to/your/class/file.php
, - list groups:
lando phpunit --list-groups
, - run all the tests in a particular group:
lando phpunit --group Groupname
.