Fix init for windows

This commit is contained in:
René Preuß committed 2021-07-24 13:23:58 +02:00
1 parent 26672908f1
commit c90ad43a3c
5 files changed
+59 -26

No files matched your search

+1 -4
View File
@@ -20,6 +20,7 @@ class EdgeStorageCache
/**
* @throws FilesystemException
* @throws LockException
*/
public function parse(string $path): array
{
@@ -28,8 +29,6 @@ class EdgeStorageCache
File::EMPTY_SHA256,
));
file_put_contents(base_path(sprintf('%s.bk', basename($this->filename))), $contents);
return $this->extract($contents);
}
@@ -39,8 +38,6 @@ class EdgeStorageCache
$contents = $this->hydrate($files, $local, $edge);
$checksum = strtoupper(hash('sha256', $contents));
file_put_contents(base_path(sprintf('%s', basename($this->filename))), $contents);
$promise = $this->edgeStorage->put(new LocalFile($filename, $checksum, $contents));
/** @var ResponseInterface $response */
+1 -1
View File
@@ -125,7 +125,7 @@ class FileCompare
$this->command->info('- Waiting for deploy to go live...');
if (!$options[CompareOptions::DRY_RUN]) {
if (!$options[CompareOptions::DRY_RUN] && $pullZoneId) {
$flushResult = $this->apiClient->purgeCache($pullZoneId);
}