mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
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:
parent
490bd3ca2d
commit
9dcd4eeab1
@ -4,8 +4,12 @@
|
|||||||
## master
|
## master
|
||||||
[v6.4.5...master](https://github.com/deployphp/deployer/compare/v6.4.5...master)
|
[v6.4.5...master](https://github.com/deployphp/deployer/compare/v6.4.5...master)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Re-added the `artisan:view:clear` task
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Change the default shared files in the Symfony4 recipe. The .env file is versionned now and not the .env.local [#1881]
|
- 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
|
## v6.4.5
|
||||||
|
@ -103,6 +103,11 @@ task('artisan:route:cache', function () {
|
|||||||
run('{{bin/php}} {{release_path}}/artisan route:cache');
|
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');
|
desc('Execute artisan view:cache');
|
||||||
task('artisan:view:cache', function () {
|
task('artisan:view:cache', function () {
|
||||||
$needsVersion = 5.6;
|
$needsVersion = 5.6;
|
||||||
@ -110,8 +115,6 @@ task('artisan:view:cache', function () {
|
|||||||
|
|
||||||
if (version_compare($currentVersion, $needsVersion, '>=')) {
|
if (version_compare($currentVersion, $needsVersion, '>=')) {
|
||||||
run('{{bin/php}} {{release_path}}/artisan view:cache');
|
run('{{bin/php}} {{release_path}}/artisan view:cache');
|
||||||
} else {
|
|
||||||
run('{{bin/php}} {{release_path}}/artisan view:clear');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user