Closed pmarinova closed 1 month ago
After updating to the latest version of the pages-gem (v229), the Docker image was updated to Ruby 3 and fails because of issue #752. To work around this you now also need to run bundle add webrick
before jekyll serve
:
docker run --rm -it \
-p 4000:4000 \
-v ${PWD}:/src/site \
gh-pages \
sh -c "bundle add webrick && bundle install && jekyll serve -H 0.0.0.0 -P 4000"
I tested the fix and the 'github-pages' gem not found error disappears, but the site is not generated properly. Everything is just plain text. It's the same behavior as when there is no Gemfile at the site root.
Anyway, this is not an issue for me anymore as I realized this docker image is intended for development of the github-pages gem whereas my case is to simply run a github-pages site locally. I am now using the latest version of the github-pages gem from rubygems like this: https://gist.github.com/pmarinova/0b345a2656abe079c322ad0a90a32c61
Before submitting an issue, please be sure to
bundle update github-pages
) (does not apply)This issue affects
What did you do (e.g., steps to reproduce)
Attempting to use the github-pages gem using the docker image with the instructions from the README does not work out-of-the-box, for example:
What did you expect to happen?
To be able to run the site locally at localhost:4000
What happened instead?
I got the following error:
Additional information
The only way I could get it working was by running
bundle install
beforejekyll serve
:Shouldn't the github-pages gem be already preinstalled in the docker image?