Skip to content

Commit

Permalink
patch wp2static maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian committed Mar 27, 2024
1 parent 2dca908 commit 928b0fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/wordpress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM alpine:latest AS wp2static-builder

RUN apk add composer php82-simplexml php82-dom php82-tokenizer php82-xml php82-xmlwriter zip git
WORKDIR /build
COPY wp2static.patch .
RUN git clone https://github.com/elementor/wp2static
RUN git apply ../wp2static.patch
RUN (cd wp2static && composer install)
RUN (cd wp2static && composer build wp2static)

Expand Down
13 changes: 13 additions & 0 deletions docker/wordpress/wp2static.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/Crawler.php b/src/Crawler.php
index 81e526ed..b3cc1baa 100755
--- a/src/Crawler.php
+++ b/src/Crawler.php
@@ -232,7 +232,7 @@ class Crawler {
WsLog::l( $notice );
}
},
- 'rejected' => function ( RequestException $reason, $index ) use ( $urls ) {
+ 'rejected' => function ( $reason, $index ) use ( $urls ) {
$root_relative_path = $urls[ $index ]['path'];
WsLog::l( 'Failed ' . $root_relative_path );
},

0 comments on commit 928b0fb

Please sign in to comment.