Closed giannijacot closed 4 months ago
I'm in no ways a Jekyll or ruby expert. Quite the opposite. It isn't unlikely that I've commited nonsense. That sais it works on my mac and the build server. Let me know if I need to change anything
Could docker work for you? https://talk.jekyllrb.com/t/docker-jekyll-jekyll-container/3824/2
docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" --env JEKYLL_ENV=development -p 4000:4000 jekyll/jekyll:4.1.0 jekyll serve
Hello, I have realised that the changes made on the repository are only displayed on the test site (and that we have to create a release for displaying them on the actual site) so the need to run the site locally for testing is currently less of a priority.
Docker could work for us. I will make some tests with it and keep you informed.
Our build system uses a Docker image built here: https://github.com/gbif/hosted-portals/tree/main/docker
Thanks for the link to the Docker image. I've managed to run the site locally by using the command given to run the image and adding port mapping and the "jekyll serve" instruction. Here is the command I used :
docker run -e JEKYLL_ENV=development -p 4000:4000 --volume="path_to_the_repository:/srv/jekyll" docker.gbif.org/fast-jekyll:4.1.0 bash -c "jekyll build; /chown -R \"$(id -u):$(id -g)\" _site; jekyll serve"
(I've runned the commande in Windows command line)
Hello,
I'm trying to run the site locally for testing it and better understanding its functioning but i'm running into errors when running
bundle install
andbundle exec Jekyll serve
.I followed the instructions on the Jekyll website and it seems to works correctly but when I'm running
bundle install
from the hp-swiss-bif directory on my computer I got the following error :I tried renaming the "Gemfile.lock" file to recreate a new one when running bundle install (see Gemfile.lock.txt file) and it seemed to work but when I run
bundle exec Jekyll serve
after that I got the following error :Do you know if I have missed something in the install procedure or what could cause the errors ? Any help is appreciated !
I downloaded the latest version of Ruby (with devkit) and I'm on Windows 10.