Include helper in deploy.php
file.
require 'recipe/deploy/update_shared.php';
before('deploy:shared', 'deploy:update_shared_dirs');
before('deploy:update_shared_dirs', 'deploy:clear_shared_dirs');
-
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.