fix(ci): deploy built unstyled pages; files arrived world-writable #2
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/deploy-postcss-and-perms"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The first staged deploy shipped pages without styles. The server's staging copy came from a hand-kept file list that was missing
postcss.config.mjs(added in the Astro 7 upgrade), so Tailwind never ran on the server. The CI check passed because it builds from the full checkout.Separately,
rsync -acopied the runner's world-writable file modes onto the server (777/666).Fix
*.config.mjsis copied to the live directory.@tailwinddirectives.rsync --chmod=Dgo-w,Fgo-wremoves group and world write: folders arrive 755, files 644.Test plan
npm ciand the build: modes 755/644,postcss.config.mjspresent, 84 KB of processed CSS, check passes@tailwindin a 12 KB CSS file)src/,public/andscripts/on the server are 755