upgrade: put panel into maintenance mode before writing files

This commit is contained in:
Matthew Penner 2021-08-18 12:44:55 -06:00
parent 5d000ef10f
commit 1beeae5e1f
No known key found for this signature in database
GPG Key ID: 5396CC4C3C1C9704

View File

@ -94,6 +94,11 @@ class UpgradeCommand extends Command
$bar = $this->output->createProgressBar($skipDownload ? 9 : 10);
$bar->start();
$this->withProgress($bar, function () {
$this->line('$upgrader> php artisan down');
$this->call('down');
});
if (!$skipDownload) {
$this->withProgress($bar, function () {
$this->line("\$upgrader> curl -L \"{$this->getUrl()}\" | tar -xzv");
@ -104,11 +109,6 @@ class UpgradeCommand extends Command
});
}
$this->withProgress($bar, function () {
$this->line('$upgrader> php artisan down');
$this->call('down');
});
$this->withProgress($bar, function () {
$this->line('$upgrader> chmod -R 755 storage bootstrap/cache');
$process = new Process(['chmod', '-R', '755', 'storage', 'bootstrap/cache']);