Closed kykungz closed 5 years ago
Hi @kykungz,
Sorry for the late reply.
The clue is in this cURL error 7: Failed to connect to localhost port 8000: Connection refused
for the URL http://localhost:8000/wp-content/themes/twentyseventeen/rtl.css
, probably the first URL it's attempting to crawl.
I used to use Docker primarily for developing this plugin and it was working well, but I can't recall exactly my setup.
It would appear that there is a discrepancy between what Docker sees as the WordPress and what the plugin and you see the URL as.
ie, you're accessing the site at localhost or localhost:8000?
The plugin runs within the Docker container, so it needs the WordPress URL to be what's accessible within the container, not necessarily what you use to access it from the host machine.
I'd fiddle around with that and adjusting the WP siteurl
and home
settings until it works.
Please let me know if still having issues and I can do some Docker testing.
Cheers,
Leon
Hi @kykungz,
I've just done some testing with your exact docker-compose.yml
and put a little guide here, for the settings to be used with the latest build of the plugin (available at the Release page in GitHub):
https://forum.wp2static.com/-44/how-to-use-with-a-docker-compose-setup
You may still have some issues with your host name resolution. If that's the case, please post on the forum: https://forum.wp2static.com and I'll help you diagnose and work through it.
Cheers,
Leon
I'm very new to WordPress, and want to try using Wordpress Static Site Generator Plugin to create a
.html
files from my WordPress site. I was following this tutorial from https://docs.docker.com/compose/wordpress/ which usesdocker-compose
to create a simple WordPress site.Then I go ahead and activate your plugin and got no
html
files:Any help?
EDIT: here is some information from
docker-compose
that might be useful: