Caution
This recipe and the Drupal Recipes functionality are experimental and still under development. Things will break and/or not work from time to time. This should not be installed in production environments.
This recipe is designed to do the following:
- Install core modules that we want
- Set specific core configuration
- Set specific contributed module configuration
- Install and setup base LocalGov Drupal modules and configuration
Follow the Configuring Drupal to Apply Recipes documentation
Add the recipe by adding the repository;
"repositories": [
...
{
"type": "vcs",
"url": "https://github.com/millnut/localgov_recipe"
},
{
"type": "vcs",
"url": "https://github.com/millnut/localgov_base"
},
{
"type": "vcs",
"url": "https://github.com/millnut/localgov_admin_theme"
}
]
Then run the following composer require;
composer require millnut/localgovdrupal_recipe
- Start with a Drupal 10 site.
- Install the 'Minimal' profile.
- Apply the recipe
The recipe can be applied with PHP. Note that core/scripts/drupal
must be
executable with chmod +x
.
Warning
The Drupal Recipes functionality and this recipe are experimental. When applying a recipe there is currently no rollback or recovery process should anything go wrong. Ensure you are installing on a local environment or sandbox/throwaway environment and have taken sufficient backups before applying the recipe.
php core/scripts/drupal recipe recipes/contrib/localgovdrupal_recipe
If all goes well, you should see the following output:
[OK] LocalGov Drupal applied successfully
Clear the cache after the recipe is applied. When going back to the site, all the recipe configuration and customization has been applied.