You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow deployer to remove folder/files when deploying #3251
I did not find any doc about this, maybe it's alresay done.
If not, is it possible to add a feature that allow deployer to remove files that are not needed.
It can be configured as the shared_dirs/files and why not included in the cleanup.php with the same process as done in shared.php but with an rm instead of a mkdir
foreach (get('delete_dirs') as $dir) {
// Make sure all path without tailing slash.
$dir = trim($dir, '/');
// Check if dir does not exist.
if (test("[ -d $dir ]")) {
// delete dir if it does exist.
run("rm -rf $sharedPath/$dir");
}
So we can remove all files that aren't needed for the application (ex: docker files and stuff)
Activity