Leon
CDCloudflare Developers
•Created by Leon on 10/23/2023 in #pages-help
How to use specific bundler version in V2?
I was excited to see the build cache feature, which needs the v2 build system enabled.
In v1, the version of bundler is detected from the Gemfile.lock file, but in v2 this seems not to be the case.
At https://developers.cloudflare.com/pages/platform/language-support-and-tools/ it shows "Corresponds with Ruby version" for Supported versions, but there aren't any instructions about configuring it.
What's the appropriate way to configure the version of bundler?
I have tried updating the version, and using BUNDLER_VERSION env variable, but same result.
8 replies
CDCloudflare Developers
•Created by Leon on 4/12/2023 in #pages-help
Has the temp directory location changed in the past week?
Our Jekyll build has started failing on an issue in the parent theme. If we rerun old (successful) builds from 6 days ago, they now fail.
All versions of dependencies are the same in the successful builds 6 days ago compared to the unsuccessful ones today.
I have traced it back to what I believe to be the temp directory now being set to
/opt/buildhome/repo/
. I believe this might have changed in the past 6 days.
When Cloudflare builds:
When building locally:
Basically, when building in Cloudflare, the parent theme zip is downloaded inside the repo directory where its contents are seen as part of our site, which causes the build error.
I've had to enable verbose mode to generate the above output so unfortunately can't see which directory was used when it was working without error 6 days ago. But obviously can see that it uses /tmp
when we run the build locally.10 replies