Skip to content

My personal website, which (will eventually) contain all of what I made

Notifications You must be signed in to change notification settings

ewen-lbh/portfolio

Repository files navigation

ewen.works

My personal website, built with ortfo/db and go-templ

Setup

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)

Dev

ENV=development air

Start

# Run Build's commands
ENV=production ./tmp/main

Build

templ generate
go build -o ./tmp/main .

Db

ortfodb --scattered build database.json

Clean

rm -f */*_templ.go
rm -rf dist/
rm -f database.json

Deploy

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"

About

My personal website, which (will eventually) contain all of what I made

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published