all repos — homestead @ cff16e188f4c49f62cb9b12382f76b34ca7aac6b

Code for my website

move entrypoint to repo root

Alan Pearce
commit

cff16e188f4c49f62cb9b12382f76b34ca7aac6b

parent

4976c16035432216d5976c6ca16e44165bae6ba1

M .ko.yaml.ko.yaml
@@ -2,10 +2,7 @@ defaultPlatforms:
- linux/amd64 builds: - id: alanpearce-eu - main: cmd/server - flags: - - -tags - - embed + main: . ldflags: - -X go.alanpearce.eu/website/internal/server.CommitSHA={{ .Git.FullCommit }} - -X go.alanpearce.eu/website/internal/server.ShortSHA={{ .Git.ShortCommit }}
D cmd/server/kodata/feed-styles.xsl
@@ -1,1 +0,0 @@
-../../../templates/feed-styles.xsl
D cmd/server/kodata/robots.tmpl
@@ -1,1 +0,0 @@
-../../../templates/robots.tmpl
D cmd/server/kodata/style.css
@@ -1,1 +0,0 @@
-../../../templates/style.css
M justfilejustfile
@@ -38,4 +38,4 @@ fly auth docker
deploy *DEPLOY_FLAGS: templ generate - fly deploy --image $(KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} ./cmd/server) {{ DEPLOY_FLAGS }} + fly deploy --image $(KO_DOCKER_REPO={{ docker_registry }} ko build --sbom none --bare --tags {{ docker-tag }} .) {{ DEPLOY_FLAGS }}
A kodata/feed-styles.xsl
@@ -0,0 +1,1 @@
+../templates/feed-styles.xsl
A kodata/robots.tmpl
@@ -0,0 +1,1 @@
+../templates/robots.tmpl
A kodata/style.css
@@ -0,0 +1,1 @@
+../templates/style.css
M modd.confmodd.conf
@@ -1,4 +1,4 @@
**/*.go !**/*_templ.go { daemon +sigint: templ generate --watch \ - --cmd="go run ./cmd/server --dev" + --cmd="go run . --dev" }
M templates/files.gotemplates/files.go
@@ -4,7 +4,7 @@ import (
"os" ) -var Files = os.DirFS(getEnvFallback("KO_DATA_PATH", "cmd/server/kodata")) +var Files = os.DirFS(getEnvFallback("KO_DATA_PATH", "kodata")) func getEnvFallback(key, fallback string) string { if value, found := os.LookupEnv(key); found {