Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the requirejs secure files #319

Merged
merged 1 commit into from
Jun 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,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