diff --git a/justfile b/justfile index a689698..aa8a50f 100644 --- a/justfile +++ b/justfile @@ -36,7 +36,13 @@ cp-prod-datastore: # Update ascend input and nixos-rebuild switch prod-deploy: + # Build on this machine (faster) and copy to prod /nix/store + nix copy --to ssh://192.168.1.3 . + + # Update ascend input on prod machine nix configuration ssh 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just update-ascend' + + # Switch nix configuration on prod (should be fast as /nix/store should be pre-populated) ssh -t 192.168.1.3 'cd /home/plul/repos/gitlab.com/plul/nixexprs; just switch' prod-logs: