diff --git a/CHANGELOG.md b/CHANGELOG.md index 109c672..3b903ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md). +## 1.0.7 (22. July 2019) + ++ Add runtime to shared folders, flush application cache on deploy instead. + ## 1.0.6.1 (20. May 2019) + Try to improve the composer global require command, certain options could be ignored. diff --git a/luya.php b/luya.php index e22f7e1..5f6d9f3 100644 --- a/luya.php +++ b/luya.php @@ -112,10 +112,21 @@ run('cd {{release_path}} && ./vendor/bin/luya exporter/export'); }); + +/** + * Task: flush cache + */ +task('luya:cacheflush', function() { + run('cd {{release_path}} && ./vendor/bin/luya cache/flush-all'); +})->desc('Flush application cache.'); + /** * Set global env shared dirs. */ -set('shared_dirs', ['public_html/storage']); +set('shared_dirs', [ + 'public_html/storage', + 'runtime', +]); /** * Task: luya @@ -128,8 +139,9 @@ 'deploy:luya', 'deploy:symlink', 'deploy:shared', + 'luya:cacheflush', 'cleanup' -))->desc('LUYA project deployment'); +))->desc('LUYA app deployment.'); /** * Task: cleanup:deployefile @@ -151,7 +163,7 @@ // 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'); +})->desc('Remove sensitive data.'); /** * Set deployfile cleanup