bundle exec jekyll serve, the plugins are not loaded, and an error occurs. When I run bundle exec jekyll serve –plugins _plugins, the plugins are loaded and everything works.
I am doing all this in a docker container, where the site source is in /site. I have verified that the CWD at the time of the bundle command is /site and that the _plugins directory is present there. It just appears that jekyll is not looking at it, unless I specify it as a CLI argument.
If, instead of jekyll serve, I run jekyll build, everything works fine too.
I do not have “safe: true” in the config. I also am not loading any github gems.
What am I missing? The full command being run is:
bundle exec jekyll serve --force_polling --host 0.0.0.0 -p 4000 --watch --config=_config.yml,_config_development.yml
The file _config_development.yml is currently empty. For building:
bundle exec jekyll build --config=_config.yml,_config_production.yml
The file `_config_production.yml` contains:
url: “https://domain.com”
baseurl: “/blog”
sass:
sass_dir: _sass
style: compressed
quiet_deps: true
#sourcemap: true
cache: false
This overrides (from _config.yml): baseurl: “”
So, for all intents and purposes, only _config.yml plays a role and is constant between the two.