Back to Deployer

Shared Recipe

docs/recipe/deploy/shared.md

8.0.31.0 KB
Original Source
<!-- DO NOT EDIT THIS FILE! --> <!-- Instead edit recipe/deploy/shared.php --> <!-- Then run bin/docgen -->

Shared Recipe

php
require 'recipe/deploy/shared.php';

Source

Configuration

shared_dirs

Source

List of dirs what will be shared between releases. Each release will have symlink to those dirs stored in deploy_path/shared dir.

php
set('shared_dirs', ['storage']);

shared_files

Source

List of files what will be shared between releases. Each release will have symlink to those files stored in deploy_path/shared dir.

php
set('shared_files', ['.env']);

Tasks

deploy:shared {#deploy-shared}

Source

Creates symlinks for shared files and dirs.