Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Cloudcannon上部署jekyll应用程序失败_Jekyll_Cloudcannon - Fatal编程技术网

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

在Cloudcannon上部署jekyll应用程序失败,jekyll,cloudcannon,Jekyll,Cloudcannon,我正试图在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 $

我正试图在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提要的最新版本是0.12.1 请更正您的Gemfile以指向任何大于或等于0.12.0的jekyll提要版本:

运行捆绑包更新,以便安装新版本并将其包含在Gemfile.lock中


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

问题可能来自您的Gemfile.lock

jekyll提要的最新版本是0.12.1 请更正您的Gemfile以指向任何大于或等于0.12.0的jekyll提要版本:

运行捆绑包更新,以便安装新版本并将其包含在Gemfile.lock中


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

Jordan,来自CloudCannon

ashmaroli是正确的,您引用的jekyll提要版本号无效。按照ashmaroli的步骤应该可以解决问题

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


如果您还有任何问题,请随时提问,我们非常乐意提供帮助:

来自CloudCannon的Jordan

ashmaroli是正确的,您引用的jekyll提要版本号无效。按照ashmaroli的步骤应该可以解决问题

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

如果您还有任何问题,请随时回答,我们非常乐意为您提供帮助:

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