Skip to content

Commit 5745101

Browse files
committed
Document DNS cutover steps and scraper rerun procedure
1 parent 467fe9a commit 5745101

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,30 @@ Each entry is a small markdown file with a frontmatter block at the top — copy
2323

2424
## Hosting
2525

26-
Deployed via GitHub Pages from the `main` branch. The custom domain `daslab.stanford.edu` is wired up via DNS CNAME → `daslab.github.io`.
26+
Deployed via GitHub Pages, built by the workflow at `.github/workflows/pages.yml`. Currently live at:
27+
28+
**https://daslab.github.io/daslab-website/**
29+
30+
### DNS cutover to daslab.stanford.edu (when ready)
31+
32+
Two steps, in order:
33+
34+
1. **Update DNS at Stanford.** Have Stanford IT change the CNAME (or A/AAAA records) for `daslab.stanford.edu` to point at GitHub Pages. The four GitHub Pages IPs for apex domains are: `185.199.108.153`, `185.199.109.153`, `185.199.110.153`, `185.199.111.153`. For a CNAME, point at `daslab.github.io`.
35+
2. **Add a `CNAME` file to this repo** containing exactly `daslab.stanford.edu` and push. GitHub will detect it and provision a Let's Encrypt cert automatically (give it a few minutes after DNS propagates).
36+
37+
Until DNS resolves to GitHub Pages, leave the `CNAME` file out — committing it early will make GitHub Pages redirect the staging URL to `daslab.stanford.edu`, which still points at AWS, breaking the preview.
38+
39+
## Re-running the content scraper
40+
41+
The current site's content was migrated by `tools/scrape_content.py` from HTML in `_scrape/`. To refresh from the live AWS site (e.g., after a CMS update):
42+
43+
```bash
44+
cd _scrape
45+
for p in / /research/ /news/ /people/ /publications/ /resources/ /contact/; do
46+
curl -sL "https://daslab.stanford.edu$p" -o "$(echo "$p" | sed 's:/:_:g').html"
47+
done
48+
cd ..
49+
python3 tools/scrape_content.py
50+
```
51+
52+
Note: this overwrites everything in `_people/`, `_alumni/`, `_publications/`, `_news/`. Don't run it after lab members have hand-edited content unless you're prepared to re-merge.

0 commit comments

Comments
 (0)