Skip to content

Commit

Permalink
Setup: Aufspielen der lokalen Datenbank korrigiert (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed May 21, 2024
1 parent 65f89b5 commit b828b7b
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 b828b7b

Please sign in to comment.