aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/scripts/deploy-website.nix.org
blob: f1d1d108e3f47af39843830fa3ae4b4668f85813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#+title: Website Deploy Script

Deploy my website from a specified branch.
#+begin_src nix
  { config, pkgs, ... }:

  {
    home.file."./.local/bin/deploy-website" = {
      executable = true;
      text = ''
#+end_src

=ssh= into my server and run the deploy script, passing command line arguments to the script.
#+begin_src sh
  #!/bin/sh
  /usr/bin/ssh jjanzen.ca "sudo /usr/local/bin/deploy.sh "$@""
#+end_src


Close the block.
#+begin_src nix
      '';
    };
  }
#+end_src