Set composer to clean bootstrap/cache before an update

This commit is contained in:
Dan Brown 2017-02-27 16:48:36 +00:00
parent e3eefba745
commit bcafa73faf
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -47,6 +47,14 @@
"post-create-project-cmd": [
"php artisan key:generate"
],
"pre-update-cmd": [
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
],
"pre-install-cmd": [
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
],
"post-install-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize",