Skip to content

Commit

Permalink
Merge pull request #319 from continuouspipe/feature/generate-secure-r…
Browse files Browse the repository at this point in the history
…equirejs-files

Generate the requirejs secure files
  • Loading branch information
sroze authored Jun 28, 2017
2 parents e7ef3f5 + c33ed73 commit 23d4b74
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,18 @@ function do_magento_dependency_injection_compilation() {
function do_magento_deploy_static_content() {
# Compile static content if it's a production container.
if [ "$MAGENTO_MODE" = "production" ]; then
as_code_owner "bin/magento setup:static-content:deploy $FRONTEND_COMPILE_LANGUAGES"
set +e
run_magento_deploy_static_content "" "--no-javascript $FRONTEND_COMPILE_LANGUAGES"
run_magento_deploy_static_content "on" "--no-css --no-less --no-images --no-fonts --no-html --no-misc --no-html-minify $FRONTEND_COMPILE_LANGUAGES"
set -e
fi
}

function run_magento_deploy_static_content() {
local FLAGS="$2"
HTTPS="$1" as_code_owner "bin/magento setup:static-content:deploy $FLAGS"
}

function do_magento_reindex() {
(as_code_owner "bin/magento indexer:reindex" || echo "Failing indexing to the end, ignoring.") && echo "Indexing successful"
}
Expand Down

0 comments on commit 23d4b74

Please sign in to comment.