ftdops
December 12, 2019, 9:09pm
1
Using Workers Sites to publish static Wordpress site to Cloudflare, wrangler publish misses some css and js files from my ./public folder.
Is there a way to force all files to be recognised?
You can report directly to Wrangler Dev Team, it shouldn’t miss anything.
1 Like
ftdops
December 17, 2019, 9:46pm
3
Turns out that any files inside a subfolder named “dist” are ignored. This is specified in .gitignore which can be edited to “/dist” instead of “dist” so that wrangler publish only ignores the /dist in the workers sites project folder and not inside ./public
Bug report here:
opened 11:49AM - 14 Dec 19 UTC
closed 11:24PM - 03 Jan 20 UTC
bug
investigate
### 🐛 Bug Report
<!--
Please fill out each section below before submittin… g your 🐛 bug report.
Before opening a new issue, please:
* search for existing issues: https://github.com/cloudflare/wrangler/issues
* make sure you are using the latest release: https://workers.cloudflare.com/docs/quickstart/updating-the-cli/
Thanks! -->
#### Environment
* operating system: windows 10 pro v1909 (18363.535)
#### Steps to reproduce
Generate workers site project, set account id, api access granted using workers site template permissions.
Static file export of Wordpress site, placed in ./public folder
Run wrangler publish
Some css and js and font files are not uploaded (as seen by http 500 error in chrome dev tools for those resources)
I suspect this is because the files are in a deep folder structure, because when these files are moved to root public folder or 1 folder deep, wrangler does not skip them and they are successfully deployed.
#### What did you expect to see?
I expect ALL files in ./public folder to be deployed
#### What did you see instead?
Some files are skipped during wrangler publish process
2 Likes