package moonboard problems
This commit is contained in:
parent
780c005d33
commit
42e8b0a19a
@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
cp target/release/ascend $out/bin/
|
cp target/release/ascend $out/bin/
|
||||||
cp -r target/site $out/
|
cp -r target/site $out/
|
||||||
wrapProgram $out/bin/ascend --set LEPTOS_SITE_ROOT $out/site
|
wrapProgram $out/bin/ascend --set LEPTOS_SITE_ROOT $out/site --set MOONBOARD_PROBLEMS $out/data/moonboard-problems
|
||||||
|
|
||||||
mkdir -p $out/data/moonboard-problems
|
mkdir -p $out/data/moonboard-problems
|
||||||
cp "moonboard-problems/problems Mini MoonBoard 2020 40.json" $out/data/moonboard-problems/
|
cp "moonboard-problems/problems Mini MoonBoard 2020 40.json" $out/data/moonboard-problems/
|
||||||
|
8
justfile
8
justfile
@ -34,3 +34,11 @@ open-firewall:
|
|||||||
cp-prod-datastore:
|
cp-prod-datastore:
|
||||||
rm -r datastore
|
rm -r datastore
|
||||||
rsync --human-readable --recursive --info=stats1,progress2 --archive 192.168.1.3:/home/ascend/datastore .
|
rsync --human-readable --recursive --info=stats1,progress2 --archive 192.168.1.3:/home/ascend/datastore .
|
||||||
|
|
||||||
|
# Update ascend input and nixos-rebuild switch
|
||||||
|
prod-deploy:
|
||||||
|
ssh 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just update-ascend'
|
||||||
|
ssh -t 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just switch'
|
||||||
|
|
||||||
|
prod-logs:
|
||||||
|
ssh 192.168.1.3 'journalctl --unit ascend.service'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user