From 3db18bb7892cd7724929741edf1c43b51e10480f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 23 Feb 2025 01:29:58 +0000 Subject: [PATCH] Add publish script --- devenv.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/devenv.nix b/devenv.nix index d36338f1..2b273628 100644 --- a/devenv.nix +++ b/devenv.nix @@ -35,4 +35,13 @@ tasks = { }; enterTest = ''''; + + scripts = { + publish.exec = '' + sculpin generate --env prod + rsync -avz static/ output_prod + rsync -avz output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk + ''; + }; + }