diff --git a/.env.sample b/.env.sample index ccab7e6..7efadf0 100644 --- a/.env.sample +++ b/.env.sample @@ -8,8 +8,8 @@ # # Never use 127.0.0.1, localhost, or 0.0.0.0. When your Wi-Fi IP # changes, update HOST here and the matching values in the mobile -# apps (Xcode scheme NATEMPLATE_API_DOMAIN and Android -# ~/.gradle/gradle.properties NATEMPLATE_API_DOMAIN). +# apps (Xcode scheme NATIVEAPPTEMPLATE_API_DOMAIN and Android +# ~/.gradle/gradle.properties NATIVEAPPTEMPLATE_API_DOMAIN). HOST=192.168.1.21 PORT=3000 diff --git a/CLAUDE.md b/CLAUDE.md index b48bad5..22ecd71 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -96,7 +96,7 @@ bin/rails dbconsole # Database console - Run tests: `bin/rails test` (205 tests, 402 assertions) ### Development Server Configuration -- `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`. +- `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`. - Mailbin for email testing at `/mailbin` - Admin interface at `/madmin` - Tailwind CSS compiled by tailwindcss-rails gem diff --git a/README.md b/README.md index 8691c2d..7cf1dbc 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ bin/setup ## Running NativeAppTemplate API on your Wi-Fi -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://: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`. +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://: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`. To run your application, you'll use the `bin/dev` command: