summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
committerBrian Picciano <mediocregopher@gmail.com>2021-01-21 17:22:53 -0700
commitbcf9b230be6d74c71567fd0771b31d47d8dd39c7 (patch)
tree2d0fc16142d55bbd5876ac6b8174c2857883b40e /Makefile
parentd57fd70640948cf20eeb41b56e8d4e23e616cec0 (diff)
build the blog with nix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
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