Commit b6e9b5d
Fall back to localhost for mailer host when HOST is unset
ENV.fetch("HOST") at config-load time crashed any Rails invocation
that doesn't go through Foreman (bin/rails test, console, setup, CI)
— .env is loaded only when bin/dev runs via Foreman/Overmind. Default
the mailer URL host to "localhost" so boot succeeds in those paths;
Procfile.dev still uses \${HOST:?...} so the dev server itself won't
start without an explicit Wi-Fi IP.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3469bff commit b6e9b5d
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments