diff --git a/src/BuildProcess/CopyApplicationToBuildPath.php b/src/BuildProcess/CopyApplicationToBuildPath.php index b3143125..53331da5 100644 --- a/src/BuildProcess/CopyApplicationToBuildPath.php +++ b/src/BuildProcess/CopyApplicationToBuildPath.php @@ -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' + ) + ); } /**