We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
During the first deployment, the task "copy_dirs" deletes directories.
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' ]);
[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
The text was updated successfully, but these errors were encountered:
Fixed b37e735
Sorry, something went wrong.
No branches or pull requests
Description
During the first deployment, the task "copy_dirs" deletes directories.
Content of
deploy.php
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
The text was updated successfully, but these errors were encountered: