perf: optimize Jekyll build with incremental and livereload options

This commit is contained in:
Paul Gauthier (aider) 2025-03-13 17:38:25 -07:00
parent 6fa9af20c0
commit a3554a95c5

View file

@ -1,13 +1,16 @@
#!/bin/bash #!/bin/bash
# Run the Docker container # Run the Docker container with optimizations for faster builds
docker run \ docker run \
--rm \ --rm \
-v "$PWD/aider/website:/site" \ -v "$PWD/aider/website:/site" \
-p 4000:4000 \ -p 4000:4000 \
-e HISTFILE=/site/.bash_history \ -e HISTFILE=/site/.bash_history \
-e JEKYLL_ENV=development \
-it \ -it \
my-jekyll-site my-jekyll-site bundle exec jekyll serve --incremental --livereload
# --entrypoint /bin/bash \ # Additional options:
# --incremental: Only rebuilds files that changed
# --livereload: Auto-refreshes browser when content changes