diff options
| author | Claudomator Agent <agent@claudomator.local> | 2026-07-05 23:24:53 +0000 |
|---|---|---|
| committer | Claudomator Agent <agent@claudomator.local> | 2026-07-05 23:24:53 +0000 |
| commit | cd14604bbef17f696475cf8737f1e41c9fa2dd06 (patch) | |
| tree | 49306d3e9d6b5bb3493c111ccedaef4dd3ed4cb0 /deployment | |
| parent | 1c88981cbb5a95ee84e2a61cf9eb2e547c37253b (diff) | |
fix(deploy): add CSS build step before rsync to prevent missing output.css
Both deploy scripts now run `npm ci || npm install && npm run build`
before syncing web/static/, ensuring Tailwind output.css is always
present in fresh checkouts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'deployment')
| -rw-r--r-- | deployment/deploy | 4 | ||||
| -rw-r--r-- | deployment/post-receive | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/deployment/deploy b/deployment/deploy index f120bb3..5bc4888 100644 --- a/deployment/deploy +++ b/deployment/deploy @@ -14,6 +14,10 @@ git pull echo "==> Stopping service..." systemctl stop ${SERVICE} || true +echo "==> Building CSS..." +npm ci || npm install +npm run build + echo "==> Building..." go build -o ${SITE_DIR}/app cmd/dashboard/main.go diff --git a/deployment/post-receive b/deployment/post-receive index 1647794..76581dd 100644 --- a/deployment/post-receive +++ b/deployment/post-receive @@ -19,8 +19,12 @@ echo "Checking out code..." mkdir -p ${CHECKOUT_DIR} GIT_WORK_TREE=${CHECKOUT_DIR} git --git-dir=${REPO_DIR} checkout -f master -echo "Building binary..." +echo "Building CSS..." cd ${CHECKOUT_DIR} +npm ci || npm install +npm run build + +echo "Building binary..." GOOS=linux GOARCH=amd64 go build -o ${SITE_DIR}/app cmd/dashboard/main.go echo "Syncing static files..." |
