Skip to content

Commit 8b596ec

Browse files
dadachiclaude
andauthored
Normalize NATEMPLATE_API_DOMAIN docs to NATIVEAPPTEMPLATE_API_DOMAIN (#54)
Per docs-private/SUBSTRATE-NAMING-NORMALIZATION.md, all three substrates should use the canonical NATIVEAPPTEMPLATE_ stem so the agent's existing NativeAppTemplate -> <slug-pascal> rename pair handles every product-name occurrence. The Rails repo has no boot/config references to these env vars - only doc references that point users at the iOS/Android values - so update them for parity. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 12e666c commit 8b596ec

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#
99
# Never use 127.0.0.1, localhost, or 0.0.0.0. When your Wi-Fi IP
1010
# changes, update HOST here and the matching values in the mobile
11-
# apps (Xcode scheme NATEMPLATE_API_DOMAIN and Android
12-
# ~/.gradle/gradle.properties NATEMPLATE_API_DOMAIN).
11+
# apps (Xcode scheme NATIVEAPPTEMPLATE_API_DOMAIN and Android
12+
# ~/.gradle/gradle.properties NATIVEAPPTEMPLATE_API_DOMAIN).
1313

1414
HOST=192.168.1.21
1515
PORT=3000

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ bin/rails dbconsole # Database console
9696
- Run tests: `bin/rails test` (205 tests, 402 assertions)
9797

9898
### Development Server Configuration
99-
- `HOST` (Wi-Fi IP) and `PORT` are required in `.env`; `Procfile.dev` uses `${HOST:?...}` so Rails fails loudly if unset, and `development.rb` uses `ENV.fetch("HOST")` for `action_mailer.default_url_options`. Must match `NATEMPLATE_API_DOMAIN` in the iOS scheme and Android `gradle.properties`. Never `127.0.0.1`, `localhost`, or `0.0.0.0`.
99+
- `HOST` (Wi-Fi IP) and `PORT` are required in `.env`; `Procfile.dev` uses `${HOST:?...}` so Rails fails loudly if unset, and `development.rb` uses `ENV.fetch("HOST")` for `action_mailer.default_url_options`. Must match `NATIVEAPPTEMPLATE_API_DOMAIN` in the iOS scheme and Android `gradle.properties`. Never `127.0.0.1`, `localhost`, or `0.0.0.0`.
100100
- Mailbin for email testing at `/mailbin`
101101
- Admin interface at `/madmin`
102102
- Tailwind CSS compiled by tailwindcss-rails gem

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bin/setup
8484

8585
## Running NativeAppTemplate API on your Wi-Fi
8686

87-
Copy `.env.sample` to `.env` and set `HOST` to your current Wi-Fi IP. On macOS: `ipconfig getifaddr en0`. `bin/dev` binds Rails to that address so the dev server is reachable from both the host browser and from any phone on the same network at `http://<wifi-ip>:3000`. When your Wi-Fi IP changes, update `HOST` here and the matching `NATEMPLATE_API_DOMAIN` in the mobile apps (Xcode scheme for iOS, `~/.gradle/gradle.properties` for Android) — Rails fails loudly if `HOST` is unset, which keeps the three sides honest. Never use `127.0.0.1`, `localhost`, or `0.0.0.0`.
87+
Copy `.env.sample` to `.env` and set `HOST` to your current Wi-Fi IP. On macOS: `ipconfig getifaddr en0`. `bin/dev` binds Rails to that address so the dev server is reachable from both the host browser and from any phone on the same network at `http://<wifi-ip>:3000`. When your Wi-Fi IP changes, update `HOST` here and the matching `NATIVEAPPTEMPLATE_API_DOMAIN` in the mobile apps (Xcode scheme for iOS, `~/.gradle/gradle.properties` for Android) — Rails fails loudly if `HOST` is unset, which keeps the three sides honest. Never use `127.0.0.1`, `localhost`, or `0.0.0.0`.
8888

8989
To run your application, you'll use the `bin/dev` command:
9090

0 commit comments

Comments
 (0)