2020-10-02 00:11:13 +02:00
|
|
|
<!-- DO NOT EDIT THIS FILE! -->
|
|
|
|
<!-- Instead edit recipe/deploy/cleanup.php -->
|
|
|
|
<!-- Then run bin/docgen -->
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
|
|
|
|
[Source](/recipe/deploy/cleanup.php)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-08-31 20:15:06 +02:00
|
|
|
## Configuration
|
2021-03-15 22:12:13 +01:00
|
|
|
### cleanup_use_sudo
|
2021-08-31 23:19:40 +02:00
|
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/cleanup.php#L5)
|
2021-03-15 22:12:13 +01:00
|
|
|
|
|
|
|
Use sudo in deploy:cleanup task for rm command.
|
|
|
|
|
2021-08-31 20:15:06 +02:00
|
|
|
```php title="Default value"
|
|
|
|
false
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2020-10-02 00:11:13 +02:00
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
2021-08-31 23:19:40 +02:00
|
|
|
### deploy:cleanup
|
|
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/cleanup.php#L8)
|
2020-10-02 00:11:13 +02:00
|
|
|
|
2021-08-31 23:25:22 +02:00
|
|
|
Cleaning up old releases.
|
|
|
|
|
|
|
|
|
2020-10-02 00:11:13 +02:00
|
|
|
|
2021-08-31 20:15:06 +02:00
|
|
|
|