Skip to content

Commit

Permalink
Merge pull request #1563 from keymanapp/fix/debug/no-cdn
Browse files Browse the repository at this point in the history
fix: Skip CDN for --debug builds
  • Loading branch information
mcdurdin authored Oct 11, 2024
2 parents 513127e + 5a99378 commit f927c6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
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

0 comments on commit f927c6a

Please sign in to comment.