site

files for beauhilton.com
git clone https://git.beauhilton.com/site.git
Log | Files | Refs

commit 6e560da4e55aa2fdce8fbd19520d58968bd1c1d3
parent 201d0f2d196afe34aff26ff7fa8d2a20e97879b6
Author: beau hilton <cbeauhilton@gmail.com>
Date:   Fri, 20 Oct 2023 12:12:25 -0500

testing hooks

Diffstat:
M.devenv/profile | 4++--
M.pre-commit-config.yaml | 4++--
Mflake.nix | 15++++-----------
3 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/.devenv/profile b/.devenv/profile @@ -1 +1 @@ -/nix/store/6is21xpd64dvz0ql8xrx9vkbdkc3d606-devenv-profile -\ No newline at end of file +/nix/store/m40193v8y7zhf05g74q38n3lw93vmakd-devenv-profile +\ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/3srkkbc39gmwk7cqhm4gim7niqf5cn6d-pre-commit-config.json -\ No newline at end of file +/nix/store/qbqqqcls02hbasxnnij6q9wk31dyzjq1-pre-commit-config.json +\ No newline at end of file diff --git a/flake.nix b/flake.nix @@ -52,21 +52,14 @@ newterm.exec = "wezterm start --cwd ."; autorebuild.exec = "nohup ag -l | entr -n -s 'soupault' &> /dev/null &"; # autorebuild, uses caching so superer snappier serve.exec = "nohup simple-http-server --index --nocache -o -p 8999 ./build 2>&1 &"; # the -o opens $BROWSER + upload.exec = "soupault && cp build/atom.xml build/feed.xml && rsync -avh --rsync-path=openrsync build/* beau@beauhilton.com:/var/www/htdocs/www.beauhilton.com/"; }; pre-commit.hooks = { alejandra.enable = true; - rsync-to-server = { + upload = { enable = true; - name = "rsync to server"; - entry = '' - soupault && - cp build/atom.xml build/feed.xml && - rsync \ - -av \ - --rsync-path=openrsync \ - build/* \ - beau@beauhilton.com:/var/www/htdocs/www.beauhilton.com/ - ''; + name = "upload"; + entry = "upload"; }; }; }