2021-09-26 15:25:58 +02:00
|
|
|
<!-- DO NOT EDIT THIS FILE! -->
|
|
|
|
<!-- Instead edit recipe/deploy/shared.php -->
|
|
|
|
<!-- Then run bin/docgen -->
|
|
|
|
|
2022-07-26 09:18:44 +02:00
|
|
|
# Shared Recipe
|
2021-09-26 15:25:58 +02:00
|
|
|
|
|
|
|
[Source](/recipe/deploy/shared.php)
|
|
|
|
|
|
|
|
|
2021-10-18 18:29:14 +02:00
|
|
|
## Configuration
|
|
|
|
### shared_dirs
|
|
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/shared.php#L12)
|
|
|
|
|
|
|
|
List of dirs what will be shared between releases.
|
|
|
|
Each release will have symlink to those dirs stored in [deploy_path](/docs/recipe/common.md#deploy_path)/shared dir.
|
|
|
|
```php
|
|
|
|
set('shared_dirs', ['storage']);
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### shared_files
|
|
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/shared.php#L19)
|
|
|
|
|
|
|
|
List of files what will be shared between releases.
|
|
|
|
Each release will have symlink to those files stored in [deploy_path](/docs/recipe/common.md#deploy_path)/shared dir.
|
|
|
|
```php
|
|
|
|
set('shared_files', ['.env']);
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-09-26 15:25:58 +02:00
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
|
|
|
### deploy:shared
|
2021-10-18 18:29:14 +02:00
|
|
|
[Source](https://github.com/deployphp/deployer/blob/master/recipe/deploy/shared.php#L22)
|
2021-09-26 15:25:58 +02:00
|
|
|
|
2021-11-08 22:59:39 +01:00
|
|
|
Creates symlinks for shared files and dirs.
|
2021-09-26 15:25:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|