diff options
author | EuAndreh <eu@euandre.org> | 2020-12-27 17:35:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-27 17:37:40 -0300 |
commit | b62cd6895b4bade829219e330d4986c02e494fbf (patch) | |
tree | b1d1d084625617d64a7d95df8b8627a6b9820a19 | |
parent | Add resources/podcasts/2020-12-19-a-test-entry.flac sample audio (diff) | |
download | euandre.org-b62cd6895b4bade829219e330d4986c02e494fbf.tar.gz euandre.org-b62cd6895b4bade829219e330d4986c02e494fbf.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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" |