From 1d7374d3877fb326c6f495d6ee13e8e8b44c0ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Wed, 26 Feb 2025 13:35:28 +0100 Subject: [PATCH] feat: just prod-deploy with upload of locally build artifact --- justfile | 6 ++++++ 1 file changed, 6 insertions(+) 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: