Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 797 Bytes

update_shared.md

File metadata and controls

31 lines (20 loc) · 797 Bytes

Update shared deploy helper

Installing

Include helper in deploy.php file.

require 'recipe/deploy/update_shared.php';

Usage

  before('deploy:shared', 'deploy:update_shared_dirs');
  before('deploy:update_shared_dirs', 'deploy:clear_shared_dirs');

Tasks & Configuration

  • deploy:update_shared_dirs - updates shared dirs with config:

    • update_shared_dirs as array - default: []

    Copies all defined dirs from {{release_path}}/$dir to {{deploy_path}}/shared, to transfer changes from repo to shared folders.

  • clear:update_shared_dirs - clear shared dirs with config:

    • clear_shared_dirs as array - default: []

    Removes all defined dirs from {{deploy_path}}/shared, to cleanup shared folders before updating from repo.