Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto regeneration is not working with _config.yml?

Tags:

jekyll

I installed jekyll and run it from cli:

jekyll --server --auto

But when I change _config.yml I can't see that my changes where applied and I have to restart server every time.

I really need to restart server every time when I change _config.yml? Or there is some workaround?

like image 844
Viacheslav Kondratiuk Avatar asked Jan 14 '13 19:01

Viacheslav Kondratiuk


2 Answers

I believe you are correct; that changes to _config.yml always require restarting the server.

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?

like image 157
cynewulf Avatar answered Sep 28 '22 10:09

cynewulf


Parker Moore, maintainer of Jekyll, confirms that _config.yml changes are not autogenerated or picked up by a running, watching Jekyll server.

No I remember why we can't do this: if you change either source or destination, you're eff'd, so we said 👎 to this suggestion. Definitely use _data if you're using custom data. Otherwise, a quick ^C and restart should be 👌

https://github.com/jekyll/jekyll/issues/2302#issuecomment-43160557

like image 31
pkamb Avatar answered Sep 28 '22 10:09

pkamb