39 lines
627 B
Markdown
39 lines
627 B
Markdown
# ekzyis
|
|
|
|
This is the code for my blog at https://ekzy.is/.
|
|
|
|
## Development
|
|
|
|
```
|
|
// enter dev environment
|
|
$ nix-shell
|
|
|
|
// run server
|
|
$ 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>
|
|
```
|