From: Dan Brown Date: Mon, 27 Feb 2017 16:48:36 +0000 (+0000) Subject: Set composer to clean bootstrap/cache before an update X-Git-Tag: v0.15.1~1^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/bcafa73faf4a26810cf4f876efe2677b116d5aba Set composer to clean bootstrap/cache before an update --- diff --git a/composer.json b/composer.json index 7d820b3f8..396a9babd 100644 --- a/composer.json +++ b/composer.json @@ -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",