What is the problem you are having with rclone?
I am trying to deploy a static site's source code to Cloudflare Pages. I have a Cloudflare API token and account ID.
I currently use
wrangler==3.6.0 for this with the below command, but would like to move to
npx wrangler pages deploy docs/_build ...
rclone config, I don't see an option for Cloudflare Pages.
What remote should be used for Cloudflare Pages, or does
rclone not support this?
Run the command 'rclone version' and share the full output of the command.
- os/version: darwin 12.6 (64 bit)
- os/kernel: 21.6.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.20.6
- go/linking: dynamic
- go/tags: none
Nope there is no
Cloudflare Pages remote.
Check what file transfer protocols
Cloudflare Pages support - maybe there is something supported by rclone - ftp, sftp, webdav? etc.
You can deploy to Cloudflare R2 with rclone very easily and then use something like this GitHub - kotx/render: Cloudflare Worker to proxy and cache requests to R2 running as a cloudflare worker. I've tried it and it works very well!
npx wrangler deploys to Cloudflare using their own API, there's no other protocol available
Thanks all for your responses, collectively they complete a picture. Cheers and cheers to
I have managed to deploy Cloudflare Pages via GitHub.
So you can easily manage static pages via git and automation.
Connect Cloudflare Pages to your github.com account, select repositories to be allowed, then create a site using the repository. It's a straightforward process.
Cloudflare app manages the automatic pipeline via hooks, so it takes some 15 secs. to build and deploy your site. after you push changes to github.
see: GS Cloud Ltd. · GitHub for source code
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.