Format shell.nix

This commit is contained in:
ekzyis 2024-06-02 22:38:28 -05:00
parent dd1880c613
commit 6fc1eb2f7d
2 changed files with 22 additions and 4 deletions

View File

@ -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 <session>
$ <CTRL-C>
$ git pull
$ cd server && templ generate && go build -o server .
$ ./server
$ <CTRL-B+D>
```

View File

@ -1,6 +1,8 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [
go hugo tailwindcss
];
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages;
[
go hugo tailwindcss
];
}