From b62cd6895b4bade829219e330d4986c02e494fbf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 27 Dec 2020 17:35:36 -0300 Subject: default.nix: Add $JEKYLL_ENV=production to copy symlinks Otherwise, the server livereload is broken, and also a second build, because Jekyll will copy the symlink as is, and it becomes broken when copied. --- default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/default.nix b/default.nix index d8acf76..90bc009 100644 --- a/default.nix +++ b/default.nix @@ -44,9 +44,11 @@ let }; in rec { site = drv "site" '' + export JEKYLL_ENV=production jekyll build -d $out --trace ''; test = drv "test" '' + export JEKYLL_ENV=production ./tests.sh touch $out ''; @@ -59,6 +61,8 @@ in rec { echo 'Server with feature flags:' echo ' jekyll serve --future --livereload --trace -c $(cfg podcast screencast)' + export JEKYLL_ENV=production + cfg() { T="$(mktemp --suffix .yml)" cp _config.yml "$T" -- cgit v1.2.3