Skip to content

Commit

Permalink
Merge pull request #107 from php-etl/fix/copy-dot-env
Browse files Browse the repository at this point in the history
make a symlink of the .env
  • Loading branch information
clemzarch authored May 30, 2023
2 parents 9094038 + 089c40e commit fdfd549
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Adapter/Filesystem/SatelliteBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ public function build(): Configurator\SatelliteInterface
}
}

if (!file_exists($this->workdir.'/.env') && file_exists(getcwd().'/.env')) {
symlink(getcwd().'/.env', $this->workdir.'/.env');
}

$composer = new Satellite\Adapter\Composer($this->workdir);
$satellite = new Satellite\Adapter\Filesystem\Satellite(
$this->workdir,
Expand Down

0 comments on commit fdfd549

Please sign in to comment.