The code and data behind xeiaso.net
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Earthfile: launch /app/xesite for branding clout

Signed-off-by: Xe Iaso <me@xeiaso.net>

Xe Iaso b2d9350d ade22021

+59 -3
+1 -1
Earthfile
··· 70 70 RUN apk add -U ca-certificates deno typst 71 71 ENV TYPST_FONT_PATHS=/app/fonts 72 72 73 - CMD ["./xesite"] 73 + CMD ["/app/xesite"] 74 74 75 75 LABEL org.opencontainers.image.source="https://github.com/Xe/site" 76 76
+49
fly/xesite/fly.dev.toml
··· 1 + # fly.toml file generated for xesite on 2023-09-27T19:39:44-04:00 2 + 3 + app = "xesite-dev" 4 + 5 + vm.cpus = 2 6 + vm.memory = "2GB" 7 + 8 + kill_signal = "SIGINT" 9 + kill_timeout = 5 10 + 11 + [mounts] 12 + source = "data" 13 + destination = "/data" 14 + initial_size = "4GB" 15 + auto_extend_size_threshold = 80 16 + auto_extend_size_increment = "1GB" 17 + auto_extend_size_limit = "10GB" 18 + 19 + #[experimental] 20 + #cmd = ["/bin/sleep", "infinity"] 21 + 22 + [build] 23 + image = "ghcr.io/xe/site/bin:earthly" 24 + 25 + [env] 26 + HOME = "/data" 27 + DATA_DIR = "/data" 28 + GIT_BRANCH = "main" 29 + SITE_URL = "https://xeiaso.net/" 30 + INTERNAL_API_BIND = ":80" 31 + 32 + [[services]] 33 + internal_port = 3000 34 + processes = ["app"] 35 + protocol = "tcp" 36 + 37 + [services.concurrency] 38 + hard_limit = 300 39 + soft_limit = 250 40 + type = "connections" 41 + 42 + [[services.ports]] 43 + force_https = true 44 + handlers = ["http"] 45 + port = 80 46 + 47 + [[services.ports]] 48 + handlers = ["tls", "http"] 49 + port = 443
+2 -2
fly/xesite/fly.toml
··· 1 1 # fly.toml file generated for xesite on 2023-09-27T19:39:44-04:00 2 2 3 3 app = "xesite" 4 + primary_region = "yyz" 4 5 5 6 vm.cpus = 2 6 7 vm.memory = "2GB" ··· 17 18 auto_extend_size_limit = "10GB" 18 19 19 20 [build] 20 - image = "ghcr.io/xe/site/bin:latest" 21 + image = "ghcr.io/xe/site/bin:earthly" 21 22 22 23 [env] 23 24 DATA_DIR = "/data" 24 25 GIT_BRANCH = "main" 25 26 SITE_URL = "https://xeiaso.net/" 26 - PATH = "/bin" 27 27 INTERNAL_API_BIND = ":80" 28 28 29 29 [[services]]
+7
internal/lume/lume.go
··· 193 193 return nil, fmt.Errorf("lume: can't pull: %w", err) 194 194 } 195 195 196 + head, err := repo.Head() 197 + if err != nil { 198 + return nil, fmt.Errorf("lume: can't get head: %w", err) 199 + } 200 + 201 + slog.Debug("branch head", "hash", head.Hash().String(), "branchName", head.Name().Short()) 202 + 196 203 err = wt.Checkout(&git.CheckoutOptions{ 197 204 Branch: plumbing.NewBranchReferenceName(o.Branch), 198 205 })