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

时间:2019-04-03 13:04:50

标签: jekyll cloudcannon

我试图在Jekyll的Cloudcannon CMS平台上部署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版本并将其再次捆绑,但是它给了我相同的结果,我不想删除该插件,因为我需要它。

2 个答案:

答案 0 :(得分:3)

问题可能出在您的Gemfile.lock上。

jekyll-feed的最新版本是0.12.1
更正您的Gemfile,使其指向大于或等于jekyll-feed的{​​{1}}的任何版本:

0.12.0

运行gem "jekyll-feed", "~> 0.12" ,以便安装新版本并将其包含在您的bundle update

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

答案 1 :(得分:3)

来自CloudCannon的乔丹。

ashmaroli是正确的,您为jekyll-feed引用的版本号无效。遵循ashmaroli的步骤应该可以解决问题。

请注意,我们将在下一个或两个月内添加对多个Ruby版本的支持。这将解决将来与需要更高版本Ruby的插件不兼容的情况。

如果您还有其他问题contact us,我们非常乐意为您提供帮助:)