Deploying Jekyll site Error
Hi I'm trying to deploy a jekyll website in cloudflare pages but I'm getting this error. I already set the environmental variables:
==== Build settings ====
Build command:
jekyll build
Build output directory:
/_site
Build system version:
2 (latest)
Root directory:
/
Environment variables:
Variable name Value
RUBY_VERSION
2.7.3
==== Error when deploying ====
09:10:21.401 Executing user command: jekyll build
09:10:21.818 No preset version installed for command jekyll
09:10:21.818 Please install a version by running one of the following:
09:10:21.818
09:10:21.818 asdf install ruby 2.7.3 09:10:21.819
09:10:21.819 or add one of the following versions in your config file at /opt/buildhome/.tool-versions 09:10:21.828 ruby 3.2.2 09:10:21.830 Failed: Error while executing user command. Exited with error code: 126 09:10:21.844 Failed: build command exited with code: 1 09:10:22.800 Failed: error occurred while running build command
09:10:21.818 asdf install ruby 2.7.3 09:10:21.819
09:10:21.819 or add one of the following versions in your config file at /opt/buildhome/.tool-versions 09:10:21.828 ruby 3.2.2 09:10:21.830 Failed: Error while executing user command. Exited with error code: 126 09:10:21.844 Failed: build command exited with code: 1 09:10:22.800 Failed: error occurred while running build command
2 Replies
I don’t have a solution but I’m also have Jekyll deploy issues! I’ll be watching this thread closely
do you have
Gemfile
in the project folder, like described in the documentation - Preparing your GitHub Pages repository?