From ad156e5935df8e3dcfd3b57ced54fc81e10c3a20 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 17 Dec 2020 07:06:40 +1100 Subject: [PATCH] Adjustments for post update --- app/Console/Commands/PostUpdate.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Console/Commands/PostUpdate.php b/app/Console/Commands/PostUpdate.php index 08bf548ef4e7..34030b35bbfe 100644 --- a/app/Console/Commands/PostUpdate.php +++ b/app/Console/Commands/PostUpdate.php @@ -69,16 +69,22 @@ class PostUpdate extends Command info("I wasn't able to optimize."); } + info("optimized"); + try { Artisan::call('view:clear'); } catch (\Exception $e) { info("I wasn't able to clear the views."); } + info("view cleared"); + /* For the following to work, the web user (www-data) must own all the directories */ VersionCheck::dispatch(); + info("sent for version check"); + echo "Done."; } }