# davegilligan-new Astro + React islands frontend for `davegilligan.com`. This is the repo that should own the public magazine-style frontend now. It deploys only the static site layer and intentionally leaves these server-side paths alone: - `api/` - `admin/` - `uploads/` - `matomo/` - `live/` - `db/` - `vendor/` ## Local commands - `npm install` - `npm run dev` - `npm run build` - `npm run preview` ## GitHub deploy workflow The workflow lives at `.github/workflows/deploy.yml`. It does four things on every push to `main`: 1. Builds the Astro site from `dist/` 2. Uploads a tarball of the static build to the server 3. Creates a timestamped backup of the current `public_html` 4. Rsyncs only the static frontend into `public_html`, while protecting backend and upload paths ## Required GitHub secrets - `SSH_PRIVATE_KEY` - `REMOTE_HOST` - `REMOTE_USER` - `REMOTE_PATH` - `SSH_PORT` Recommended production values for this site: - `REMOTE_HOST=89.167.24.252` - `REMOTE_PATH=/home/davegilligan/public_html` - `SSH_PORT=22` `REMOTE_USER` should be the SSH user that has permission to write to `/home/davegilligan/public_html`. ## Important note Do not let the old `davegilligan` repo auto-deploy the frontend anymore. That repo still contains the legacy React/PHP site and can overwrite this Astro frontend if its workflow is left active.