From 6fc1eb2f7d59448d317414becb0a6a0721707b07 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 2 Jun 2024 22:38:28 -0500 Subject: [PATCH] Format shell.nix --- README.md | 16 ++++++++++++++++ shell.nix | 10 ++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0694829..5b7e46e 100644 --- a/README.md +++ b/README.md @@ -13,10 +13,26 @@ $ hugo server // other tab: run tailwindcss in watch mode $ tailwindcss -i assets/css/input.css -o static/tailwind.css --watch + +// other tab: run htmx backend +$ cd server +$ go install github.com/a-h/templ/cmd/templ@latest +$ templ generate +$ go run . ``` ## Deployment ``` +// deploy static HTML generated by hugo $ ./deploy + +// update server manually +$ ssh ekzy.is +$ tmux at -t +$ +$ git pull +$ cd server && templ generate && go build -o server . +$ ./server +$ ``` diff --git a/shell.nix b/shell.nix index a4bbd4e..94f26aa 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,8 @@ { pkgs ? import {} }: - pkgs.mkShell { - nativeBuildInputs = with pkgs.buildPackages; [ - go hugo tailwindcss - ]; + +pkgs.mkShell { + nativeBuildInputs = with pkgs.buildPackages; + [ + go hugo tailwindcss + ]; }