From 8cfe94a8b9da45d28614ee2a1ef63dd96ad2271d Mon Sep 17 00:00:00 2001 From: lpeidro Date: Fri, 12 Apr 2024 10:17:18 +0200 Subject: [PATCH 1/2] Update gitignore for compose.overrides --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6043665..2b32a4e 100644 --- a/.gitignore +++ b/.gitignore @@ -66,8 +66,9 @@ node_modules/ # Temporary files /tmp/* -# Ignore docker-compose env specific settings. -/docker-compose.override.yml +# Ignore compose env specific settings. +/compose.override.yml +/compose.xdebug.override.yml # Ensure .gitkeep files are commited so folder structure get respected. !.gitkeep From f9e234b9512f57f02d48149c8622f4464ea1fe23 Mon Sep 17 00:00:00 2001 From: lpeidro Date: Fri, 12 Apr 2024 10:22:14 +0200 Subject: [PATCH 2/2] Update README for drush command policy --- drush/Commands/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drush/Commands/README.md b/drush/Commands/README.md index 2d5ca54..626b0f6 100644 --- a/drush/Commands/README.md +++ b/drush/Commands/README.md @@ -2,5 +2,12 @@ Drush command policies have been implemented to prevent the execution of certa 'sql:sync', and 'sql:drop' in production or other environment instances. To apply these policies, two actions must be taken: -- In the definition of the alias for the environment where you want these policies to be applied you have to add the parameter: "protected-instance: true" +- In the definition of the alias (sites/default.site.yml) for the environment where you want these policies to be applied you have to add the parameter: "protected-instance: true". For example: + ```yaml + pro: + root: /var/www/html/example.prod + uri: https://www.example.com + user: example + protected-instance: true + ``` - On the server of the environment, copy the 'drush/Commands/drush.yml.dist' to the user's .drush folder of the user used for SSH connections to the server. \ No newline at end of file