From 1dc2059a57d7d47092295264f849518f2a6b5721 Mon Sep 17 00:00:00 2001 From: nikbpetrov Date: Sat, 21 Feb 2026 12:37:10 +0200 Subject: [PATCH 1/2] add local dev config for website --- src/www.forecastbench.org/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/www.forecastbench.org/Makefile b/src/www.forecastbench.org/Makefile index 384b3e1..212fc45 100644 --- a/src/www.forecastbench.org/Makefile +++ b/src/www.forecastbench.org/Makefile @@ -2,7 +2,7 @@ all : $(MAKE) clean $(MAKE) deploy -.PHONY : all clean deploy +.PHONY : all clean deploy dev-build dev-serve UPLOAD_DIR = upload @@ -67,3 +67,16 @@ deploy : entrypoint.sh Dockerfile .gcloudignore clean : rm -rf $(UPLOAD_DIR) .gcloudignore entrypoint.sh _site + +LOCAL_DOCKER_IMAGE_TAG = forecastbench-website + +dev-build : Dockerfile + @test -f entrypoint.sh || echo '#!/bin/sh' > entrypoint.sh + docker build -t $(LOCAL_DOCKER_IMAGE_TAG) . + +dev-serve : dev-build + docker run --rm -it -p 4000:4000 \ + -v "$$(pwd):/srv/jekyll" \ + -w /srv/jekyll --entrypoint "" \ + $(LOCAL_DOCKER_IMAGE_TAG) \ + bundle exec jekyll serve --host 0.0.0.0 --config _config.yml,_config_dev.yml --livereload \ No newline at end of file From 580584de9adf137390ac7b96fa30c8eb9f69d8ce Mon Sep 17 00:00:00 2001 From: nikbpetrov Date: Mon, 23 Feb 2026 12:28:57 +0200 Subject: [PATCH 2/2] fix: local dev website make commands (dont create dummy entrypoint.sh and use _config.yml only) --- src/www.forecastbench.org/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/www.forecastbench.org/Makefile b/src/www.forecastbench.org/Makefile index 212fc45..8bbe6ef 100644 --- a/src/www.forecastbench.org/Makefile +++ b/src/www.forecastbench.org/Makefile @@ -71,7 +71,6 @@ clean : LOCAL_DOCKER_IMAGE_TAG = forecastbench-website dev-build : Dockerfile - @test -f entrypoint.sh || echo '#!/bin/sh' > entrypoint.sh docker build -t $(LOCAL_DOCKER_IMAGE_TAG) . dev-serve : dev-build @@ -79,4 +78,4 @@ dev-serve : dev-build -v "$$(pwd):/srv/jekyll" \ -w /srv/jekyll --entrypoint "" \ $(LOCAL_DOCKER_IMAGE_TAG) \ - bundle exec jekyll serve --host 0.0.0.0 --config _config.yml,_config_dev.yml --livereload \ No newline at end of file + bundle exec jekyll serve --host 0.0.0.0 --config _config.yml --livereload \ No newline at end of file