Set up Frontity to connect to local wordpress, "request to xxx failed, reason: connect ECONNREFUSED xxx"

Hi, I tried to setup Frontity on my Windows 10 using the Quick Start Guide, but could not get it to run. @Johan suggested running it in Docker as Windows and Node can have issues…

I found this tutorial: https://github.com/trustos/frontity-wp-template
Following it I was able to get Docker set-up, and Frontity working… However, it only works if I point the state.source.url to a live wordpress website.

If I point it to http://localhost:8080/ the frontity site displays this message:

request to http://localhost:8080/wp-json/wp/v2/posts?_embed=true&page=1 failed, reason: connect ECONNREFUSED 127.0.0.1:8080

I’m happy to get something with a live site, but would love to be able to use a local site to develop from…

I followed the above mentioned guide, the only file values I changed were:

  • .env → DB_ROOT_PASSWORD → changed to personal pw
  • frontity.settings.js → state.source.url → changed to “http://localhost:8080/
  • frontity.settings.js → state.frontity.url → changed to “http://localhost:8080/

Are there any thoughts on this? Much appreciated in advance!

1 Like

Hello!
I’m facing the same issue, please let me know if you managed to get it fixed.
Thanks in advance

Hi Faraz_ahmed, sorry to say but no I could not get his resolved. If anyone has an idea, or if you manage to figure it out, I’d greatly appreciate to know how! :slightly_smiling_face:

1 Like

OK, thanks