Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task "copy_dirs" deletes directories during the first deployment #914

Closed
sardoj opened this issue Nov 30, 2016 · 1 comment
Closed

Task "copy_dirs" deletes directories during the first deployment #914

sardoj opened this issue Nov 30, 2016 · 1 comment
Labels

Comments

@sardoj
Copy link

sardoj commented Nov 30, 2016

Q A
Issue Type Bug
Deployer Version 4.x
Local Machine OS Ubuntu 14.04
Remote Machine OS Ubuntu 14.04

Description

During the first deployment, the task "copy_dirs" deletes directories.

Content of deploy.php

set('repository', '************');
set('shared_files', []);
set('shared_dirs', ['upload']);
set('writable_dirs', []);
set('copy_dirs', ['data']);
set('clear_paths', []);
set('keep_releases', 3);

// Servers
serverList('servers.yml');

//Deploy
desc('Deploy your project');
task('deploy', [
    'deploy:prepare',
    'deploy:lock',
    'deploy:release',
    'deploy:update_code',
    'deploy:copy_dirs',
    'deploy:shared',
    'deploy:writable',
    'deploy:clear_paths',
    'deploy:symlink',
    'deploy:unlock',
    'cleanup',
    'success'
]);

Output log

[site] > if [ -d $(echo /var/www/html/site/releases/1/data) ]; then rm -rf /var/www/html/site/releases/1/data; fi

[site] > if [ -d $(echo /var/www/html/site/current/data) ]; then cp -rpf /var/www/html/site/current/data /var/www/html/site/releases/1/data; fi

@antonmedv antonmedv added the bug label Dec 1, 2016
@antonmedv
Copy link
Member

Fixed b37e735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants