Jekyll网站仅在推送到GitHub时失败 [英] Jekyll site fails only when pushed to GitHub

查看:36
本文介绍了Jekyll网站仅在推送到GitHub时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jekyll开发通过Github页面部署的静态网站的新版本: https://devcampy.com

I am developing a new version of a static website with Jekyll that deployed via Github pages: https://devcampy.com

存储库: https://github.com/gianarb/devcampy.com

我在本地使用docker运行它,但无法重现该问题:

Locally I run it with docker, and I am not able to reproduce the issue:

$ docker run --rm -p 4000:4000 -v "$PWD":/srv/jekyll jekyll/jekyll:stable jekyll serve

这是我推送到存储库时通过电子邮件收到的错误.我不知道为什么它不能正常工作

This is the error I get via email when I push to the repository. I can't figure out why it does not work properly

The page build failed for the `master` branch with the following error:

Your SCSS file `assets/main.scss` has an error on line 6: File to import not found or unreadable: vendor/rfs. Load paths: node_modules /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass /hoosegow/.bundle/ruby/2.5.0/gems/jekyll-theme-primer-0.5.3/_sass. For more information, see https://help.github.com/en/articles/page-build-failed-invalid-sass-or-scss.

有人有任何反馈吗?非常感谢

Does somebody have any feedback? Thanks a lot

推荐答案

您当前的引导程序代码不完整. 缺少/node_modules/bootstrap/scss/vendor/_rfs.scss ,因为 .gitignore 规则禁止对任何 vendor 文件夹进行版本控制.

Your current bootstrap code is incomplete. /node_modules/bootstrap/scss/vendor/_rfs.scss is missing because of a .gitignore rule that prevent any vendor folder to be versioned.

  1. 在您的 .gitignore 中,将vendor行替换为vendor/bundle

运行npm install bootstrap以覆盖当前版本

这篇关于Jekyll网站仅在推送到GitHub时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆