Personal website built with Astro.
npm ci
npm run devOpen: http://localhost:4321
npm run buildStatic output is generated in dist/.
This repo includes a deploy helper:
./scripts/deploy.sh --site-dir /var/www/builder-logWhat it does:
- installs dependencies (
npm ci) unless skipped - builds Astro (
npm run build) - syncs
dist/into your web root withrsync --delete - validates and reloads Nginx
Useful flags:
./scripts/deploy.sh --no-install
./scripts/deploy.sh --no-reload
./scripts/deploy.sh --site-dir /var/www/my-siteOn the VPS, from repo root:
git pull
./scripts/deploy.sh --site-dir /var/www/builder-log --no-installIf dependencies changed (package.json / package-lock.json), run:
./scripts/deploy.sh --site-dir /var/www/builder-logUse a server block that points to the same deploy directory:
- Nginx
root:/var/www/builder-log - deploy
--site-dir:/var/www/builder-log
If those differ, you will likely see 404.