Skip to content

Commit

Permalink
Update README for drush command policy
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeidro committed Apr 12, 2024
1 parent 8cfe94a commit f9e234b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drush/Commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit f9e234b

Please sign in to comment.