diff --git a/flake.nix b/flake.nix index 279377a..14bbba8 100644 --- a/flake.nix +++ b/flake.nix @@ -65,7 +65,7 @@ cp target/release/ascend $out/bin/ 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 cp "moonboard-problems/problems Mini MoonBoard 2020 40.json" $out/data/moonboard-problems/ diff --git a/justfile b/justfile index abccf0b..b625400 100644 --- a/justfile +++ b/justfile @@ -34,3 +34,11 @@ open-firewall: cp-prod-datastore: rm -r 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'