Commit 47efcc6
Auto-detect Wi-Fi IP for dev server bind and mailer host
Design invariant: Rails and the mobile apps must agree on one
reachable address — the host's current Wi-Fi IP. Never loopback,
never localhost, never 0.0.0.0. Procfile.dev now defaults -b to
`$(ipconfig getifaddr en0)`, and development.rb picks the first
private non-loopback IPv4 via Socket.ip_address_list for
action_mailer.default_url_options. HOST in .env overrides when
en0 isn't Wi-Fi (wired-primary, Tailscale).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 05f4d70 commit 47efcc6
5 files changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 9 | | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments