Skip to content

Commit

Permalink
Merge pull request #56 from shopware/skip-asset-build-in-setup
Browse files Browse the repository at this point in the history
Speed up setup script
  • Loading branch information
shyim authored Jan 24, 2024
2 parents c6657f0 + 4d5a232 commit f676176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion rootfs/setup_6.5.x
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ if php bin/console system:config:get shopware.installed; then

update_all_plugins
install_all_plugins
php -derror_reporting=E_ALL bin/console theme:compile
else
# Shopware is not installed
php -derror_reporting=E_ALL bin/console system:install --create-database "--shop-locale=$INSTALL_LOCALE" "--shop-currency=$INSTALL_CURRENCY" --force
Expand Down
8 changes: 6 additions & 2 deletions rootfs/setup_6.6.x
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ install_all_plugins() {
}

if php bin/console system:config:get shopware.installed; then
console system:update:finish
if [[ ${SHOPWARE_SKIP_ASSET_COPY-""} ]]; then
console system:update:finish --skip-assets
else
console system:update:finish
fi

console plugin:refresh

update_all_plugins
install_all_plugins
console theme:compile
else
# Shopware is not installed
console system:install --create-database "--shop-locale=$INSTALL_LOCALE" "--shop-currency=$INSTALL_CURRENCY" --force
Expand Down

0 comments on commit f676176

Please sign in to comment.