There was an error while loading. Please reload this page.
1 parent bfbab1c commit dba3b54Copy full SHA for dba3b54
1 file changed
src/Deployment/Deployer.php
@@ -150,7 +150,9 @@ public function deploy(): void
150
$this->logger->log("Creating remote file $this->deploymentFile.running");
151
$runningFile = "$this->remoteDir/$this->deploymentFile.running";
152
$this->server->createDir(str_replace('\\', '/', dirname($runningFile)));
153
- $this->server->writeFile(tempnam($this->tempDir, 'deploy'), $runningFile);
+ $localRunningFile = tempnam($this->tempDir, 'deploy');
154
+ $this->server->writeFile($localRunningFile, $runningFile);
155
+ unlink($localRunningFile);
156
157
if ($toUpload) {
158
$this->logger->log("\nRenaming:");
0 commit comments