ewen-lbh / portfolio

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

Home Page:https://ewen.works

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://ewen.works


Languages

Language:Go 78.4%Language:JavaScript 10.1%Language:Ruby 6.9%Language:Just 3.1%Language:CSS 1.6%