amazeeio / drupal_integrations
Add this project to any Drupal 9+ distribution based on drupal/core-composer-scaffold to enable it for use on Lagoon.
Installs: 335 294
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 4
Open Issues: 15
Type:drupal-drush
Requires
Requires (Dev)
Suggests
- drupal/lagoon_logs: Zero configuration logging system for Drupal sites running on Lagoon
Conflicts
- drupal/core: <9.0
- dev-main
- dev-master
- 0.5.0
- 0.4.0
- 0.3.7
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.1.0
- 0.0.1
- dev-feature/update-annotations-to-attributes
- dev-feature/support-non-lagoon-environments
- dev-feature/set-minimum-versions
- dev-feature/support_pgsql_directly
- dev-feature/wildcardAliasGeneration
- dev-feature/generate_alias_file
- dev-feature/support-ssh-portal
- dev-feature/add_lagoon_service_functionality
- dev-feature/allow_lagoonyml_override
- dev-override-drush-sa
This package is auto-updated.
Last update: 2024-11-04 08:48:56 UTC
README
Add this project to any Drupal distribution based on drupal/core-composer-scaffold to enable it for use on Lagoon.
This project enables the following Lagoon integrations:
- Injects the Lagoon database credentials for the Drupal site
- Demonstrates how to turn on twig debugging on non-production Lagoon environments
- Sets the path to:
- Configuration import / export directory
- Private files
- Temporary files
- Twig cache files
- Establishes a secure, random hash salt for Drupal
- Prevents the user from updating Drupal core with Drush
- Configures the trusted host patterns to avoid a warning that is not applicable to Lagoon
- Ignores large cache directories (e.g. node modules and bower components)
- Installs lagoon wildcard drush alias file
- Drush commands for lagoon
Enabling this project
This project must be enabled in the top-level composer.json file, or it will be ignored and will not perform any of its functions.
{
...
"require": {
"amazeeio/drupal_integrations"
},
...
"extra": {
"drupal-scaffold": {
"allowed-packages": [
"amazeeio/drupal_integrations"
]
}
}
}
Drush commands for Lagoon
lagoon:aliases (la) Get all remote aliases from lagoon API.
lagoon:jwt (jwt) Generate a JWT token for the lagoon API.
lagoon:post-rollout-tasks Run post-rollout tasks.
lagoon:pre-rollout-tasks Run pre-rollout tasks.
Tests
Tests will run PHPCS across all files within the assets
and src
directories.
composer install
composer test
Site-Wide Drush Commands
Installing this module requires that the installer-paths in the Drupal site's composer.json file contains "drush/Commands/contrib/{$name}": ["type:drupal-drush"].
"extra": {
"installer-paths": {
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
}
}
Credits
Big thanks goes out to Greg Anderson from Pantheon all his hard work that went into improving drupal's composer integration allows us to manage platform settings via a composer project.