Skip to content

Commit

Permalink
[BUGFIX] Also check for deploy-config in home-dir (440)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Mar 31, 2021
1 parent 851d383 commit 1bb1687
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Integration/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ protected function createDeployment($deploymentName, $path = null)
}

$deploymentPathAndFilename = Files::concatenatePaths([$deploymentConfigurationPath, $deploymentName . '.php']);

if (! file_exists($deploymentPathAndFilename)) {
// Check if file exists in home-dir configurations instead
$deploymentPathAndFilename = Files::concatenatePaths([$this->getHomeDir(), 'deployments', $deploymentName . '.php']);
}

if (file_exists($deploymentPathAndFilename)) {
$deployment = new Deployment($deploymentName);
$deployment->setDeploymentBasePath($deploymentConfigurationPath);
Expand Down

0 comments on commit 1bb1687

Please sign in to comment.