Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
add several more tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Aug 2, 2018
1 parent 8e579f2 commit 15c9eff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
'deploy:assets:install',
'deploy:yarn:install', // Remove if you don't use yarn
'deploy:yarn:encore:production', // Remove if you don't use yarn
'deploy:pimcore:migrate:core',
'deploy:pimcore:migrate',
'deploy:clear_paths',
'deploy:pimcore:rebuild-classes',
Expand Down
17 changes: 17 additions & 0 deletions recipes/coreshop.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* w-vision
*
* LICENSE
*
* For the full copyright and license information, please view the LICENSE.md
* file that is distributed with this source code.
*
* @copyright Copyright (c) 2018 w-vision AG (https://www.w-vision.ch)
*/

namespace Deployer;

task('deploy:pimcore:migrate:coreshop', function() {
run('{{bin/php}} {{bin/console}} pimcore:migrations:migrate -b CoreShopCoreBundle -n');
});
12 changes: 12 additions & 0 deletions recipes/pimcore.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@
run('{{bin/php}} {{bin/console}} deployment:classes-rebuild -c -d');
});

task('deploy:pimcore:migrate:core', function() {
run('{{bin/php}} {{bin/console}} pimcore:migrations:migrate -s pimcore_core -n');
});

task('deploy:pimcore:migrate', function () {
run('{{bin/php}} {{bin/console}} pimcore:migrations:migrate');
});

task('deploy:pimcore:merge:shared', function () {
if (!has('pimcore_shared_configurations')) {
return;
}

$sharedFiles = get('shared_files');
$pimcoreSharedConfigFiles = get('pimcore_shared_configurations');

Expand All @@ -36,6 +44,10 @@
// Process the pimcore config files
// Add empty array if file is empty
task('deploy:pimcore:shared:config', function () {
if (!has('pimcore_shared_configurations')) {
return;
}

$sharedPath = "{{deploy_path}}/shared";
$emptyContent = "<?php return [];";

Expand Down

0 comments on commit 15c9eff

Please sign in to comment.