make OXID sub tasks hidden
This commit is contained in:
parent
18aa3c60b6
commit
7c429da0f3
@ -4,22 +4,22 @@ namespace Deployer;
|
|||||||
|
|
||||||
task('deploy:d3OxidBeforeVendorsTasks', [
|
task('deploy:d3OxidBeforeVendorsTasks', [
|
||||||
'deploy:oxid_backup_configfile'
|
'deploy:oxid_backup_configfile'
|
||||||
]);
|
])->hidden();
|
||||||
|
|
||||||
task('deploy:oxid_backup_configfile', function() {
|
task('deploy:oxid_backup_configfile', function() {
|
||||||
if (test('[ -f {{release_path}}/source/config.inc.php ]')) {
|
if (test('[ -f {{release_path}}/source/config.inc.php ]')) {
|
||||||
run('mv {{release_path}}/source/config.inc.php {{release_path}}/source/config.deployment.inc.php');
|
run('mv {{release_path}}/source/config.inc.php {{release_path}}/source/config.deployment.inc.php');
|
||||||
}
|
}
|
||||||
});
|
})->hidden();
|
||||||
|
|
||||||
desc('Oxid related tasks');
|
desc('Oxid related tasks');
|
||||||
task('deploy:d3OxidAfterVendorTasks', [
|
task('deploy:d3OxidAfterVendorTasks', [
|
||||||
'deploy:oxid_restore_configfile',
|
'deploy:oxid_restore_configfile',
|
||||||
'deploy:clear_paths'
|
'deploy:clear_paths'
|
||||||
]);
|
])->hidden();
|
||||||
|
|
||||||
task('deploy:oxid_restore_configfile', function() {
|
task('deploy:oxid_restore_configfile', function() {
|
||||||
if (test('[ -f {{release_path}}/source/config.deployment.inc.php ]')) {
|
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');
|
run('mv {{release_path}}/source/config.deployment.inc.php {{release_path}}/source/config.inc.php');
|
||||||
}
|
}
|
||||||
});
|
})->hidden();
|
||||||
|
@ -4,7 +4,7 @@ namespace Deployer;
|
|||||||
|
|
||||||
require_once 'inc/database.php';
|
require_once 'inc/database.php';
|
||||||
|
|
||||||
desc('create database coniguration file');
|
desc('create database configuration file');
|
||||||
task('setup:createDbConfig', function () {
|
task('setup:createDbConfig', function () {
|
||||||
try {
|
try {
|
||||||
if (!has('db_conf_path') || !strlen(get('db_conf_path'))) {
|
if (!has('db_conf_path') || !strlen(get('db_conf_path'))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user