自动再生不适用于_config.yml吗? [英] Auto regeneration is not working with _config.yml?
问题描述
我安装了jekyll并从cli运行它:
I installed jekyll and run it from cli:
jekyll --server --auto
但是当我更改_config.yml
时,看不到所做的更改已应用,并且每次都必须重新启动服务器.
But when I change _config.yml
I can't see that my changes where applied and I have to restart server every time.
我真的每次更改_config.yml
时都需要重新启动服务器吗?还是有一些解决方法?
I really need to restart server every time when I change _config.yml
? Or there is some workaround?
推荐答案
我相信您是正确的;更改为_config.yml
始终需要重新启动服务器.
I believe you are correct; that changes to _config.yml
always require restarting the server.
毕竟,_config.yml
提供了一些选项,您可以在对Jekyll的调用中覆盖这些选项.因此,如果在jekyll的命令行运行中调用某个选项(覆盖某些_config.yml
设置),然后编辑配置,则不清楚auto应该如何表现.那哪个优先呢? _config.yml
还是原始命令行参数?
After all, _config.yml
provides options that you can override in the call to Jekyll. So it is unclear how auto should behave if an option is called on the command line run of jekyll which overrides some of the _config.yml
settings, and then the config is edited. Which would take precedence then? the _config.yml
or the original command line argument?
这篇关于自动再生不适用于_config.yml吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!