Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhj committed Aug 9, 2022
1 parent e930db5 commit 9202e45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php": ">=7.4"
},
"require-dev": {
"deployer/deployer": "^7.0.0-rc.5@beta"
"deployer/deployer": "^7.0"
},
"autoload": {
"files": [
Expand Down
6 changes: 3 additions & 3 deletions recipe/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand Down

1 comment on commit 9202e45

@denniserdmann
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run("{{bin/console}} contao:backup:create '$dumpFilename'");

this is not working for me, as {{bin/console}} is ignoring {{php/bin}}in deployer and nor using php at all.

Task-Output:

cd /var/www/vhosts/domain/current && (/var/www/vhosts/domain/current/vendor/bin/contao-console contao:backup:create 'deployer__20220817150407.sql.gz')

Please sign in to comment.