CI: removed old web/dist
Deploy / deploy (push) Successful in 8s

This commit is contained in:
2026-08-29 11:06:48 +05:00
parent 0e35f04c4d
commit 9b477ae5c3
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -21,6 +21,6 @@ jobs:
chmod +x ~/apps/hub/hub-api chmod +x ~/apps/hub/hub-api
cp config.yaml ~/apps/hub/config.yaml cp config.yaml ~/apps/hub/config.yaml
cp -r scripts/. ~/apps/hub/scripts/ cp -r scripts/. ~/apps/hub/scripts/
cp -r web/dist/. ~/apps/hub/dist/ cp -r dist/. ~/apps/hub/dist/
chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/* chmod +x ~/apps/hub/hub-api ~/apps/hub/scripts/*
systemctl --user restart hub-api systemctl --user restart hub-api
+1 -1
View File
@@ -1,4 +1,4 @@
bin/ bin/
dist/
node_modules/ node_modules/
web/dist/
.DS_Store .DS_Store
+2 -2
View File
@@ -9,8 +9,8 @@ proto: ## Regenerate Go + TS code from proto
--es_out=web/src/gen --es_opt=target=ts \ --es_out=web/src/gen --es_opt=target=ts \
proto/homelab/v1/homelab.proto proto/homelab/v1/homelab.proto
web: ## Build frontend into web/dist (tsc + vite) web: ## Build frontend into dist/ (tsc + vite) — same dir the binary serves
cd web && pnpm install --frozen-lockfile && pnpm build cd web && pnpm install --frozen-lockfile && pnpm build && rm -rf ../dist && cp -r dist ../dist
server: ## Build Go binary → bin/hub-api server: ## Build Go binary → bin/hub-api
go build -o bin/hub-api ./server go build -o bin/hub-api ./server
+1 -1
View File
@@ -214,7 +214,7 @@ func main() {
} }
}) })
// Static PWA from dist/ next to the binary (CI copies web/dist → dist); HTML5 mode falls back to index.html for SPA routes. // Static PWA from dist/ (built by make web); HTML5 mode falls back to index.html for SPA routes.
e.Use(middleware.StaticWithConfig(middleware.StaticConfig{ e.Use(middleware.StaticWithConfig(middleware.StaticConfig{
Root: "dist", Root: "dist",
HTML5: true, HTML5: true,