Skip to content

Commit

Permalink
Removes cached routes before deploying (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Jun 22, 2021
1 parent 73f3b51 commit 648ffb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/BuildProcess/CopyApplicationToBuildPath.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ protected function ensureBuildDirectoryExists()
protected function flushCacheFiles()
{
$this->files->delete($this->appPath.'/bootstrap/cache/config.php');

$this->files->delete(
$this->files->glob(
$this->appPath.'/bootstrap/cache/routes*.php'
)
);
}

/**
Expand Down

0 comments on commit 648ffb0

Please sign in to comment.