Skip to content

Commit

Permalink
Merge pull request #590 from robinklaassen/fix-deploy
Browse files Browse the repository at this point in the history
force more artisan commands
  • Loading branch information
blackshadev authored Nov 1, 2023
2 parents adbf502 + 83cc7ea commit 54c6582
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions packages/Updater/Listeners/ArtisanPostUpdateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ public function __construct(ExecutorInterface $artisanExecutor)

public function handle()
{
$this->artisanExecutor->execute('clear-compiled');
$this->artisanExecutor->execute('migrate --force');
$this->artisanExecutor->execute('optimize');
$this->artisanExecutor->execute('clear-compiled', [
'--force' => true
]);
$this->artisanExecutor->execute('migrate', [
'--force' => true
]);
$this->artisanExecutor->execute('optimize', [
'--force' => true
]);
}
}
4 changes: 3 additions & 1 deletion packages/Updater/Listeners/ArtisanPreUpdateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public function __construct(ExecutorInterface $artisanExecutor)

public function handle()
{
$this->artisanExecutor->execute('optimize:clear');
$this->artisanExecutor->execute('optimize:clear', [
'--force' => true
]);
}
}

0 comments on commit 54c6582

Please sign in to comment.