My personal website, built with ortfo/db and go-templ
Run this before any command
cp .env.example .env
# fill values in .env
source .env
Below are how to do various things like start/build/etc (generated from the Justfile)
ENV=development air
# Run Build's commands
ENV=production ./tmp/main
templ generate
go build -o ./tmp/main .
ortfodb --scattered build database.json
rm -f */*_templ.go
rm -rf dist/
rm -f database.json
rsync -av media/* YOUR_SSH:~/www/media.ewen.works/
rsync -avz public/* YOUR_SSH:~/www/assets.ewen.works/
rsync -av database.json YOUR_SSH:~/portfolio/
ssh YOUR_SSH "tmux send-keys -t 0:0.0 C-c 'git pull --autostash --rebase' Enter 'just start' Enter"