2024-10-30 14:46:31 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Deployer;
|
|
|
|
|
2024-11-04 15:03:09 +01:00
|
|
|
task('deploy:d3OxidBeforeVendorsTasks', [
|
|
|
|
'deploy:oxid_backup_configfile'
|
2024-11-04 21:55:43 +01:00
|
|
|
])->hidden();
|
2024-11-04 15:03:09 +01:00
|
|
|
|
|
|
|
task('deploy:oxid_backup_configfile', function() {
|
|
|
|
if (test('[ -f {{release_path}}/source/config.inc.php ]')) {
|
|
|
|
run('mv {{release_path}}/source/config.inc.php {{release_path}}/source/config.deployment.inc.php');
|
|
|
|
}
|
2024-11-04 21:55:43 +01:00
|
|
|
})->hidden();
|
2024-11-04 15:03:09 +01:00
|
|
|
|
2024-10-30 14:46:31 +01:00
|
|
|
desc('Oxid related tasks');
|
2024-11-04 15:03:09 +01:00
|
|
|
task('deploy:d3OxidAfterVendorTasks', [
|
|
|
|
'deploy:oxid_restore_configfile',
|
2024-10-30 14:46:31 +01:00
|
|
|
'deploy:clear_paths'
|
2024-11-04 21:55:43 +01:00
|
|
|
])->hidden();
|
2024-11-04 15:03:09 +01:00
|
|
|
|
|
|
|
task('deploy:oxid_restore_configfile', function() {
|
|
|
|
if (test('[ -f {{release_path}}/source/config.deployment.inc.php ]')) {
|
|
|
|
run('mv {{release_path}}/source/config.deployment.inc.php {{release_path}}/source/config.inc.php');
|
|
|
|
}
|
2024-11-04 21:55:43 +01:00
|
|
|
})->hidden();
|