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');