From 3b8527238aef67dcfeb5a010cee0e6875a9135f7 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Tue, 21 May 2024 14:02:22 +0200 Subject: [PATCH] Setup: Aufspielen der lokalen Datenbank korrigiert --- deployer/tasks/setup.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployer/tasks/setup.php b/deployer/tasks/setup.php index 418dcd1..032ab66 100644 --- a/deployer/tasks/setup.php +++ b/deployer/tasks/setup.php @@ -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) {