jekyll: Second configuration file is being ignored with --config _config.yml,_second_config.yml
What version of Jekyll are you using (jekyll -v
)?
3.0.5
What operating system are you using?
OSX
What did you do?
I have two configuration files. _config.yml
and _development.yml
. _development.yml
includes the configuration port: 1337
.
I’m running the command jekyll serve --config _config.yml,_development.yml
What did you expect to see?
I expected the command jekyll serve --config _config.yml,_development.yml
to serve the site from http://localhost:1337
What did you see instead?
The port
configuration is ignored, and the site is served from the default http://localhost:4000
Notes
I noticed this after running bundle update github-pages
. Previously I was on Jekyll 3.0.3
which worked as expected. On 3.0.5
, the port
configuration is still honored from yaml if it is in the first configuration file, but not in the second.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)
Commits related to this issue
- `Serve.process` should receive same config as `Build.process` fixes #4850 — committed to Crunch09/jekyll by Crunch09 8 years ago
- `Serve.process` should receive same config as `Build.process` fixes #4850 — committed to Crunch09/jekyll by Crunch09 8 years ago
@opattison Thanks for going out of your way to confirm what I was experiencing!
https://github.com/danott/today-i-learned isn’t the specific repo I discovered this behavior on, but it does have the same setup as a private repo where I discovered the unexpected behavior.
I’ll use the
--port
option via command line while we get this sorted out properly. 😎Also have the issue on 3.1.6 after upgrading from 3.1.3.
I am seeing this exact issue on 3.1.6, for what it’s worth.
Edit: I’m not using
github-pages
. Straight Jekyll.I cannot reproduce on the
3.1-stable
branch.