Skip to content

Commit

Permalink
Merge pull request #142 from lpeidro/feature/update-gitignore
Browse files Browse the repository at this point in the history
Feature/update gitignore
  • Loading branch information
omarlopesino authored Apr 12, 2024
2 parents 2499ff3 + f9e234b commit 9cc68ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 9cc68ec

Please sign in to comment.