在 Cloudcannon 上部署 jekyll 应用程序失败
Deploying jekyll app on Cloudcannon fails
我正在尝试在 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 版本?
我的 Gemfile 如下所示:
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-feed
的最新版本是0.12.1
更正您的 Gemfile 以指向任何版本的 jekyll-feed
大于或等于 0.12.0
:
gem "jekyll-feed", "~> 0.12"
运行 bundle update
以便新版本安装并包含在您的 Gemfile.lock
然后提交更新后的 Gemfile 和 Gemfile.lock 并将其推送到远程存储库中。
来自 CloudCannon 的 Jordan。
ashmaroli 是正确的,您引用的 jekyll-feed 版本号无效。按照 ashmaroli 的步骤应该可以解决问题。
附带说明一下,我们将在接下来的一两个月内添加对多个 Ruby 版本的支持。这将解决未来与需要更高版本 Ruby 的插件的任何不兼容问题。
如果您还有任何问题,请随时 contact us,我们非常乐意为您提供帮助:)
我正在尝试在 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 版本?
我的 Gemfile 如下所示:
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-feed
的最新版本是0.12.1
更正您的 Gemfile 以指向任何版本的 jekyll-feed
大于或等于 0.12.0
:
gem "jekyll-feed", "~> 0.12"
运行 bundle update
以便新版本安装并包含在您的 Gemfile.lock
然后提交更新后的 Gemfile 和 Gemfile.lock 并将其推送到远程存储库中。
来自 CloudCannon 的 Jordan。
ashmaroli 是正确的,您引用的 jekyll-feed 版本号无效。按照 ashmaroli 的步骤应该可以解决问题。
附带说明一下,我们将在接下来的一两个月内添加对多个 Ruby 版本的支持。这将解决未来与需要更高版本 Ruby 的插件的任何不兼容问题。
如果您还有任何问题,请随时 contact us,我们非常乐意为您提供帮助:)