Skip to content

Commit

Permalink
Add info about removing files
Browse files Browse the repository at this point in the history
Explain why those files are removed.
  • Loading branch information
nadar authored Mar 28, 2018
1 parent 73908fe commit f413941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions luya.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,18 @@

/**
* Task: cleanup:deployefile
*
* Remove sensitive files after deployment.
*/
task('cleanup:deployfile', function () {
$keepDeployer = (has('keepDeployer')) ? get('keepDeployer') : false;
// as the deployer file can contain sensitive data about other webserver.
if (!$keepDeployer) {
run('rm -f {{release_path}}/deploy.php');
}
// sometimes the readme contains data about loggin informations or other privacy content.
run('rm -f {{release_path}}/README.md');
// the lock and json file can contain github tokens when working with private composer repos.
run('rm -f {{release_path}}/composer.lock');
run('rm -f {{release_path}}/composer.json');
})->desc('Remove sensitive data');
Expand Down

0 comments on commit f413941

Please sign in to comment.