Skip to content

Commit

Permalink
FEATURE: Introduce a configuration to skip resource publish
Browse files Browse the repository at this point in the history
Not needed in certain cases
  • Loading branch information
daniellienert authored and grebaldi committed Feb 23, 2021
1 parent d79be9a commit 9df601f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/Command/CloneCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,10 @@ protected function cloneRemoteHost(
#####################
# Publish Resources #
#####################

$this->renderHeadLine('Publish Resources');
$this->executeLocalFlowCommand('resource:publish');
if (!($clone['skipResourcePublishStep'] ?? false)) {
$this->renderHeadLine('Publish Resources');
$this->executeLocalFlowCommand('resource:publish');
}

##############
# Post Clone #
Expand Down
3 changes: 3 additions & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@ Sitegeist:
#
# # options to adjust the clone process
# clone:
# # Optionally skip the publish step
# skipResourcePublishStep: false
# database:
# # List tables of which only the schema should be cloned without data. This can be used to exclude
# # large tables or tables containing confident conten
# excludeTableContent: []
#
#
# # commands to execute after cloning
# postClone:
# - './flow help'
Expand Down

0 comments on commit 9df601f

Please sign in to comment.