From 9202e4598aff8ee9df56b675c9a004d8e546246c Mon Sep 17 00:00:00 2001 From: Richard Henkenjohann Date: Tue, 9 Aug 2022 10:05:58 +0200 Subject: [PATCH] Follow up deployphp/deployer#3200 --- composer.json | 2 +- recipe/database.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 5f7f3d7..fd60bd2 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "php": ">=7.4" }, "require-dev": { - "deployer/deployer": "^7.0.0-rc.5@beta" + "deployer/deployer": "^7.0" }, "autoload": { "files": [ diff --git a/recipe/database.php b/recipe/database.php index e05e87a..b798bd0 100644 --- a/recipe/database.php +++ b/recipe/database.php @@ -8,7 +8,7 @@ // Create backup cd('{{release_or_current_path}}'); - run("{{bin/php}} {{bin/console}} contao:backup:create '$dumpFilename'"); + run("{{bin/console}} contao:backup:create '$dumpFilename'"); info('Backup created on remote machine'); // Download backup @@ -43,12 +43,12 @@ // Restore backup cd('{{release_or_current_path}}'); - run("{{bin/php}} {{bin/console}} contao:backup:restore '$dumpFilename'"); + run("{{bin/console}} contao:backup:restore '$dumpFilename'"); info('Remote database restored'); // Migrate database try { - run('{{bin/php}} {{bin/console}} contao:migrate {{console_options}} --no-backup'); + run('{{bin/console}} contao:migrate {{console_options}} --no-backup'); info('Remote database migrated'); } catch (\Exception $e) { warning('Database migration skipped');