Skip to content

Commit

Permalink
build: attempt to fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 17, 2024
1 parent 984ea36 commit 6691b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ wait:
@$(TMP_DIR)/wait-for-it.sh localhost:$(NODE_PORT) --timeout=300 --strict -- echo "Node is up"

@echo "Waiting for WordPress to complete setup"
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'timeout=300; while [ $$timeout -gt 0 ]; do [ -f $${WORDPRESS_CONF_FILE:-/bitnami/wordpress/wp-config.php} ] && break; echo "Waiting for wp-config.php..."; sleep 5; timeout=$$((timeout - 5)); done; [ $$timeout -gt 0 ]'
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'timeout=600; while [ $$timeout -gt 0 ]; do [ -f $${WORDPRESS_CONF_FILE:-/bitnami/wordpress/wp-config.php} ] && break; echo "Waiting for wp-config.php ($$timeout seconds left)..."; sleep 5; timeout=$$((timeout - 5)); done; [ $$timeout -gt 0 ]'

up:
@echo "Starting docker compose services"
Expand Down

0 comments on commit 6691b84

Please sign in to comment.