4 Commits

6 gewijzigde bestanden met toevoegingen van 49 en 6 verwijderingen

Bestand weergeven

@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [unreleased](https://git.d3data.de/D3Public/OXID-Deployer/compare/1.0.0.0...rel_1.x)
## [unreleased](https://git.d3data.de/D3Public/OXID-Deployer/compare/1.0.0.1...rel_1.x)
## [1.0.0.1](https://git.d3data.de/D3Public/OXID-Deployer/compare/1.0.0.0...1.0.0.1) - 2024-11-04
### Changed
- handle config file from checkout to preven false isLaunched status
- move base inventory configuration to OXID recipe
## [1.0.0.0](https://git.d3data.de/D3Public/OXID-Deployer/releases/tag/1.0.0.0) - 2024-11-03
### Added

Bestand weergeven

@ -2,7 +2,24 @@
namespace Deployer;
task('deploy:d3OxidBeforeVendorsTasks', [
'deploy:oxid_backup_configfile'
])->hidden();
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');
}
})->hidden();
desc('Oxid related tasks');
task('deploy:d3OxidTasks', [
task('deploy:d3OxidAfterVendorTasks', [
'deploy:oxid_restore_configfile',
'deploy:clear_paths'
]);
])->hidden();
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');
}
})->hidden();

Bestand weergeven

@ -3,4 +3,5 @@
namespace Deployer;
after('deploy:failed', 'deploy:unlock');
after('deploy:vendors', 'deploy:d3OxidTasks');
before('deploy:vendors', 'deploy:d3OxidBeforeVendorsTasks');
after('deploy:vendors', 'deploy:d3OxidAfterVendorTasks');

Bestand weergeven

@ -4,9 +4,10 @@ namespace Deployer;
require_once __DIR__.'/../../../deployer/deployer/recipe/composer.php';
require_once __DIR__.'/setup.php';
require_once __DIR__.'/menu.php';
require_once __DIR__.'/hooks.php';
require_once __DIR__.'/databaseTasks.php';
require_once __DIR__.'/deployTasks.php';
require_once __DIR__.'/setupTasks.php';
require_once __DIR__.'/shopTasks.php';
require_once __DIR__.'/shopTasks.php';

19
recipe/setup.php Normal file
Bestand weergeven

@ -0,0 +1,19 @@
<?php
namespace Deployer;
set('default_timeout', 3000);
set('shared_dirs', [
'source/sitemaps',
'source/export',
'source/log',
'source/import',
'source/out/downloads',
'source/out/media',
'source/out/pictures'
]);
set('copy_dirs', [
'var'
]);

Bestand weergeven

@ -4,7 +4,7 @@ namespace Deployer;
require_once 'inc/database.php';
desc('create database coniguration file');
desc('create database configuration file');
task('setup:createDbConfig', function () {
try {
if (!has('db_conf_path') || !strlen(get('db_conf_path'))) {