Skip to content

Commit

Permalink
Setup: Aufspielen der lokalen Datenbank korrigiert
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed May 21, 2024
1 parent 16cec28 commit 3b85272
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deployer/tasks/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ private function copyDatabase(): void

// export source database
onHost($this->source, function () use ($path) {
cd('{{current_path}}');
if (!$this->source instanceof Localhost) {
cd('{{current_path}}');
}

run('{{bin/php}} {{bin/console}} db:connection-options | xargs {{bin/mysqldump}} > ' . escapeshellarg($path));

if ($this->source instanceof Localhost) {
Expand Down

0 comments on commit 3b85272

Please sign in to comment.