jamesbraza
(James Braza)
August 30, 2023, 6:22am
1
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 rclone
.
npx wrangler pages deploy docs/_build ...
Running 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.
rclone v1.63.1
- 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.
1 Like
ncw
(Nick Craig-Wood)
August 30, 2023, 7:58am
3
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!
2 Likes
mxdpeep
(Fred Brooker)
August 30, 2023, 9:38am
4
npx wrangler
deploys to Cloudflare using their own API, there's no other protocol available
1 Like
jamesbraza
(James Braza)
August 30, 2023, 5:45pm
5
Thanks all for your responses, collectively they complete a picture. Cheers and cheers to rclone
!
1 Like
mxdpeep
(Fred Brooker)
September 3, 2023, 2:22pm
6
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.
demo: https://4expo.eu
see: GS Cloud Ltd. · GitHub for source code
system
(system)
Closed
October 3, 2023, 2:23pm
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.