Files
ayushya.dev/nasa/README.md
T
ayushya 5cbd8b3dbb
Deploy nasa (www.nasa.family) / deploy (push) Successful in 16s
Add NASA family service hub and Cloudflare deployment
2026-10-06 14:07:08 -04:00

36 lines
1.1 KiB
Markdown

# NASA Family service hub
Single-file service directory at `www.nasa.family`. `index.html` includes
all styles, JavaScript, and service icons; no build or external assets are needed.
## Preview
From this directory:
```sh
python -m http.server 8000
```
Open `http://localhost:8000`.
## Deploy
`.gitea/workflows/deploy-nasa.yml` deploys this directory as static assets
to the Cloudflare Worker named `nasa` when changes to `nasa/**` or the workflow
are pushed to `main`.
The workflow reuses the repository's `CLOUDFLARE_API_TOKEN` and
`CLOUDFLARE_ACCOUNT_ID` secrets. The token must permit Worker deployments
in that account. The `nasa.family` zone must be in that same account for the
configured `www.nasa.family` custom domain. Cloudflare manages its DNS record
and certificate during deployment; an existing CNAME at `www` must be removed
before the custom domain can be attached.
For a manual deployment with Wrangler installed and authenticated:
```sh
npx wrangler@4 deploy
```
`.assetsignore` excludes deployment configuration and documentation from public assets.