forked from hacc/haccfiles
websites: better watch scripts
nix run .#\"<domain>\" will now actually listen for changes in the source repository, and not first copy the entire thing into the nix store.
This commit is contained in:
parent
68dc640257
commit
12e4cba3e6
6 changed files with 12 additions and 6 deletions
|
@ -22,6 +22,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
${zola}/bin/zola serve ${src} "$@"
|
cd $(git rev-parse --show-toplevel)/websites/docs.hacc.space
|
||||||
|
${zola}/bin/zola serve --output-dir /tmp/hacc-docs "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
${sfz}/bin/sfz -r ${src} "$@"
|
cd $(git rev-parse --show-toplevel)/websites/hacc.earth
|
||||||
|
${sfz}/bin/sfz "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
${sfz}/bin/sfz -r ${src}
|
cd $(git rev-parse --show-toplevel)/websites/help.studentsforfuture.info
|
||||||
|
${sfz}/bin/sfz "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,8 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
|
cd $(git rev-parse --show-toplevel)/websites/infra4future.de
|
||||||
rm -rf /tmp/hacc-website
|
rm -rf /tmp/hacc-website
|
||||||
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
|
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
${sfz}/bin/sfz -r ${src}
|
cd $(git rev-parse --show-toplevel)/websites/muc.hacc.earth
|
||||||
|
${sfz}/bin/sfz "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,8 @@ stdenvNoCC.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
watch = writeScriptBin "watch" ''
|
watch = writeScriptBin "watch" ''
|
||||||
|
cd $(git rev-parse --show-toplevel)/websites/mumble.infra4future.de
|
||||||
rm -rf /tmp/hacc-website
|
rm -rf /tmp/hacc-website
|
||||||
${jekyll}/bin/jekyll serve -s ${src} --disable-disk-cache -d /tmp/hacc-website
|
${jekyll}/bin/jekyll serve --disable-disk-cache -d /tmp/hacc-website "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue