true]); } catch (\Exception $e) { info("I wasn't able to migrate the data."); } info("finished migrating"); exec('vendor/bin/composer install --no-dev:'); info("finished running composer install "); try { Artisan::call('optimize'); } catch (\Exception $e) { 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."; } }