Commit b54976b
deploy.sh: correct the docroot, guard the target, fix control socket
Three fixes found by deploying for real.
Docroot is /afs/csail/group/ei/www/_site, not .../www. The original deploy was
`scp -r ./_site <host>:/afs/csail/group/ei/www/`, and with no trailing slash that
copies the directory in rather than its contents, so the served files sit one
level below the path the old notes gave. Syncing to the parent would have written
63 files into the shared ei-group web root, which also holds data/ and ei/, and
left the real site untouched.
Add a target-identity check before any sync: require team/index.html to exist and
index.html to mention "Algorithmic Alignment", else abort with the command to find
the real docroot. This catches a wrong CSAIL_WWW before it writes anything.
Fix the ControlPath: macOS $TMPDIR is a long /var/folders/... path and blew the
~104-char Unix domain socket limit, so multiplexing failed and Duo prompted per
connection. Use /tmp/aag-%C.
Also make the target overridable via CSAIL_WWW, and document that --delete must
never be used against the shared parent directory.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018asg1b3bxs9Bckinz6Qwxz1 parent b234384 commit b54976b
2 files changed
Lines changed: 38 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
78 | 104 | | |
79 | 105 | | |
80 | 106 | | |
| |||
0 commit comments