From bcf9b230be6d74c71567fd0771b31d47d8dd39c7 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 21 Jan 2021 17:22:53 -0700 Subject: build the blog with nix --- Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 811820c..d6d6419 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,11 @@ serve: - docker run -it --rm \ - -v $$(pwd):/srv/jekyll \ - -p 4000:4000 \ - jekyll/jekyll \ - jekyll serve -w -I -D -H 0.0.0.0 + nix-shell -A serve update: - docker run -it --rm \ - -v $$(pwd):/srv/jekyll \ - jekyll/jekyll \ - bundle update + nix-shell -p bundler --run 'bundler update' + +lock: + nix-shell -p bundler -p bundix --run 'bundler lock; bundler package --no-install --path vendor; bundix; rm -rf .bundle vendor' + +build: + nix-build -A build -- cgit v1.2.3