ruby - Jekyll 构建时间突然超长
问题描述
我突然在这个项目上花费了很长的构建时间,我不确定原因是什么。生成可能需要 60 秒以上,最短的时间是 20 秒。我已经完成了从排除node_modules
这个问题的所有工作Jekyll 编译似乎太慢了,添加--incremental
也没有任何区别。我优化了图像,甚至完全重新安装了 Ruby。下面是结果bundle exec jekyll build --profile
> Configuration file: /Users/lesliebehum/Development/sary/_config.yml
> Source: /Users/lesliebehum/Development/sary
> Destination: /Users/lesliebehum/Development/sary/_site Incremental build: disabled. Enable with --incremental
> Generating...
>
> Filename | Count | Bytes | Time
> --------------------------+-------+--------+------
> _layouts/default.html | 5 | 19.68K | 0.003
> _includes/menu.html | 5 | 7.19K | 0.001 index.html | 1 | 2.62K | 0.000
> _pages/contact.html | 1 | 1.46K | 0.000
> _includes/treatments.html | 1 | 1.32K | 0.000
> _includes/form.html | 1 | 1.34K | 0.000
> _includes/footer.html | 1 | 0.94K | 0.000
>
>
> done in 68.093 seconds. Auto-regeneration: disabled. Use --watch to enable.
似乎没有什么需要特别长时间。我正在从事其他 Jekyll 项目,这些项目大约在 1 秒内生成,而且它们要大得多。关于可能导致这种情况的任何见解?
解决方案
推荐阅读
- json - 如何在Ms access VBA中的记录集中更新之前验证数据
- cookies - 刮亚马逊。搜索结果从一台机器到另一台机器完全不同
- c# - 我可以在不编码的情况下使用 Response.Redirect 吗?
- node.js - 如何在节点 js 中获取 Firebase 云存储数据的地图?
- php - Laravel Eloquent Pagination,如何在使用过滤器分页之前计数?
- ruby-on-rails - 运行“rails s”后如何修复“不安全的世界可写目录/mnt/c in PATH, mode 040777”错误
- here-api - 在 HERE Maps API 中检测鼠标点击位置上的所有对象
- angular - 有没有办法以角度设置路线数据的类型?
- java - 使用 tFTPConnection 的匿名 ftp 连接
- machine-learning - 仅使用新到达的数据重新训练时间序列(Keras)(不是从头开始的新训练)