From 691e6fffe7989d3dec7a713de3515df0eda396ac Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 7 Jul 2015 10:57:29 +0100 Subject: [PATCH] Updated scripts --- composer.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 2a85e3da..2798b572 100644 --- a/composer.json +++ b/composer.json @@ -58,19 +58,25 @@ } }, "scripts": { + "pre-install-cmd": [ + "rm -f compiled.php config.php routes.php services.json" + ], "post-install-cmd": [ - "php artisan clear-compiled", "php artisan optimize --force", "php artisan config:cache", - "chmod -R 755 storage" + "php artisan route:cache", + "chmod -R 755 storage", + "php artisan queue:restart" ], "pre-update-cmd": [ - "php artisan clear-compiled" + "rm -f compiled.php config.php routes.php services.json" ], "post-update-cmd": [ "php artisan optimize --force", "php artisan config:cache", - "chmod -R 755 storage" + "php artisan route:cache", + "chmod -R 755 storage", + "php artisan queue:restart" ], "post-create-project-cmd": [ "php -r \"copy('.env.example', '.env');\"",