Skip to content

Commit e6c1cc9

Browse files
Anil KommareddiCopilot
andcommitted
README: add local testing instructions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4fbd9a8 commit e6c1cc9

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@ Point `www.opensourcerisk.org` to GitHub Pages by updating your DNS records:
2222

2323
Once DNS has propagated and the site is confirmed live, decommission the old WordPress server.
2424

25+
## Testing locally
26+
27+
The site is plain static HTML — just serve the repo root with any local HTTP server. **Do not open `index.html` directly in a browser** (file:// breaks root-relative links like `/wp-content/...`).
28+
29+
**Option 1 — Python (no install needed):**
30+
```bash
31+
python3 -m http.server 8000
32+
```
33+
34+
**Option 2 — Node.js (`npx`, no install needed):**
35+
```bash
36+
npx serve .
37+
```
38+
39+
**Option 3 — Ruby (if you have it):**
40+
```bash
41+
ruby -run -e httpd . -p 8000
42+
```
43+
44+
Then open [http://localhost:8000](http://localhost:8000) in your browser.
45+
2546
---
2647

2748
## TODO

0 commit comments

Comments
 (0)