Update Laravel View Cache commands (#1889)

* Update artisan cache commands

- Re-add `artisan:view:clear` command 
- Modify the existing `artisan:view:cache` command to remove the call to clear the cache, as this is already completed by the Laravel Framework

* Updated changelog with laravel view cache changes

* Update CHANGELOG.md

Update newline spacing to fix scrutinizer failure
This commit is contained in:
Matthew Muscat 2019-07-30 17:39:03 +10:00 committed by Anton Medvedev
parent 490bd3ca2d
commit 9dcd4eeab1
2 changed files with 9 additions and 2 deletions

View File

@ -4,8 +4,12 @@
## master
[v6.4.5...master](https://github.com/deployphp/deployer/compare/v6.4.5...master)
### Added
- Re-added the `artisan:view:clear` task
### Changed
- Change the default shared files in the Symfony4 recipe. The .env file is versionned now and not the .env.local [#1881]
- Change the `artisan:view:cache` task to only run the `view:cache` command
## v6.4.5

View File

@ -103,6 +103,11 @@ task('artisan:route:cache', function () {
run('{{bin/php}} {{release_path}}/artisan route:cache');
});
desc('Execute artisan view:clear');
task('artisan:view:clear', function () {
run('{{bin/php}} {{release_path}}/artisan view:clear');
});
desc('Execute artisan view:cache');
task('artisan:view:cache', function () {
$needsVersion = 5.6;
@ -110,8 +115,6 @@ task('artisan:view:cache', function () {
if (version_compare($currentVersion, $needsVersion, '>=')) {
run('{{bin/php}} {{release_path}}/artisan view:cache');
} else {
run('{{bin/php}} {{release_path}}/artisan view:clear');
}
});