Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/www.forecastbench.org/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ all :
$(MAKE) clean
$(MAKE) deploy

.PHONY : all clean deploy
.PHONY : all clean deploy dev-build dev-serve

UPLOAD_DIR = upload

Expand Down Expand Up @@ -67,3 +67,15 @@ deploy : entrypoint.sh Dockerfile .gcloudignore

clean :
rm -rf $(UPLOAD_DIR) .gcloudignore entrypoint.sh _site

LOCAL_DOCKER_IMAGE_TAG = forecastbench-website

dev-build : Dockerfile
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 --livereload