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

fix: Skip CDN for --debug builds #1563

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ builder_run_action configure bootstrap_configure
builder_run_action clean clean_docker_container $HELP_IMAGE_NAME $HELP_CONTAINER_NAME
builder_run_action stop stop_docker_container $HELP_IMAGE_NAME $HELP_CONTAINER_NAME
builder_run_action build build_docker_container $HELP_IMAGE_NAME $HELP_CONTAINER_NAME
builder_run_action start start_docker_container $HELP_IMAGE_NAME $HELP_CONTAINER_NAME $HELP_CONTAINER_DESC $HOST_HELP_KEYMAN_COM $PORT_HELP_KEYMAN_COM
builder_run_action start start_docker_container $HELP_IMAGE_NAME $HELP_CONTAINER_NAME $HELP_CONTAINER_DESC $HOST_HELP_KEYMAN_COM $PORT_HELP_KEYMAN_COM $BUILDER_CONFIGURATION

builder_run_action test test_docker_container
13 changes: 9 additions & 4 deletions resources/init-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ rm -f keyboard/index.cache
cd keyboard
php -d include_path=/var/www/html/_includes:. _build_cache.php

echo "---- Generating CDN ---"
cd ../cdn
php -d include_path=/var/www/html/_includes:. cdnrefresh.php
cd ..
if [[ ! $1 =~ "debug" ]]; then
echo "---- Generating CDN ---"
cd ../cdn
php -d include_path=/var/www/html/_includes:. cdnrefresh.php
cd ..
else
echo "Skip Generating CDN and clean CDN cache"
rm -rf ../cdn/deploy
fi