在Cloudcannon上部署jekyll应用程序失败



我正在尝试在 Cloudcannon CMS 平台上为 Jekyll 部署我的 jekyll 应用程序,但我的构建失败并显示以下输出:

Syncing raw files... done
Checking existing local bundle state... failed
Loading gem cache... 
Checking gem cache (bundle_cache/Jw8rkIm9v3Cmawv2raEpkN96fz3R5X1Q_XMn7xpGB1s.zip)... no cache
$ export JEKYLL_ENV="production"
$ ruby -v
ruby 2.3.8p459 (2018-10-18 revision 65136) [x86_64-linux]
$ bundle version
Bundler version 2.0.1 (2019-01-04 commit d7ad2192f)
$ bundle config --global jobs 4
Configured concurrent installs!
$ bundle install
Using local cacheable path...
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
jekyll-feed-0.12.0 requires ruby version >= 2.4.0, which is incompatible with
the current version, ruby 2.3.8p459

我做错了什么,如何正确更新 ruby 版本?

我的宝石文件如下所示:

source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.5"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 2.4.0"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

我试图更改 jekyll-feed 版本并再次捆绑它,但它给了我相同的结果,我不想删除该插件,因为我需要它。

问题可能来自您的Gemfile.lock

最新版本的jekyll-feed0.12.1
更正您的 Gemfile 以指向大于或等于 0.12.0 的任何版本的jekyll-feed

gem "jekyll-feed", "~> 0.12"

运行bundle update以便安装新版本并将其包含在Gemfile.lock

然后提交更新的 Gemfile 和 Gemfile.lock 并将其推送到远程存储库中。

来自 CloudCannon 的乔丹。

Ashmaroli是正确的,您引用了Jekyll-feed的无效版本号。遵循阿什马罗利的步骤应该可以解决问题。

作为旁注,我们将在未来一两个月内添加对多个 Ruby 版本的支持。这将解决将来与需要更高版本的 Ruby 的插件的任何不兼容问题。

如果您还有其他问题,请随时与我们联系,我们非常乐意为您提供帮助:)

最新更新