mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
36 lines
580 B
Markdown
36 lines
580 B
Markdown
<!-- DO NOT EDIT THIS FILE! -->
|
|
<!-- Instead edit recipe/deploy/cleanup.php -->
|
|
<!-- Then run bin/docgen -->
|
|
|
|
# Cleanup Recipe
|
|
|
|
```php
|
|
require 'recipe/deploy/cleanup.php';
|
|
```
|
|
|
|
[Source](/recipe/deploy/cleanup.php)
|
|
|
|
|
|
## Configuration
|
|
### cleanup_use_sudo
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/cleanup.php#L5)
|
|
|
|
Use sudo in deploy:cleanup task for rm command.
|
|
|
|
```php title="Default value"
|
|
false
|
|
```
|
|
|
|
|
|
|
|
## Tasks
|
|
|
|
### deploy:cleanup
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/cleanup.php#L8)
|
|
|
|
Cleanup old releases.
|
|
|
|
|
|
|
|
|