diff --git a/Makefile b/Makefile index 5833047..53e563a 100644 --- a/Makefile +++ b/Makefile @@ -124,8 +124,8 @@ set-env: wait: @echo "Waiting for services to be ready" - @$(TMP_DIR)/wait-for-it.sh localhost:80 --timeout=300 --strict -- echo "WordPress is up" - @$(TMP_DIR)/wait-for-it.sh localhost:$(NODE_PORT) --timeout=300 --strict -- echo "Node is up" + @$(TMP_DIR)/wait-for-it.sh 127.0.0.1:80 --timeout=300 --strict -- echo "WordPress is up" + @$(TMP_DIR)/wait-for-it.sh 127.0.0.1:$(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 ]'