Skip to content

Commit

Permalink
Merge pull request #589 from robinklaassen/fix-deploy
Browse files Browse the repository at this point in the history
Force artisan commands in UpdaterService
  • Loading branch information
blackshadev authored Nov 1, 2023
2 parents c5e27ff + 542d916 commit adbf502
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/Updater/Services/Updater/UpdaterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,17 @@ public function getUpdateOutput(): array

protected function preUpdate()
{
$this->artisanExecutor->execute('down');
$this->artisanExecutor->execute('down', [
'--force' => true
]);
PreUpdateEvent::dispatch();
}

protected function postUpdate()
{
PostUpdateEvent::dispatch();
$this->artisanExecutor->execute('up');
$this->artisanExecutor->execute('up', [
'--force' => true
]);
}
}

0 comments on commit adbf502

Please sign in to comment.