diff --git a/README.md b/README.md index 68d1161..e737389 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,8 @@ cp apps/mobile/.env.example apps/mobile/.env See [`apps/mobile/.env.example`](./apps/mobile/.env.example) for each variable. `EXPO_PUBLIC_API_URL` must point at a backend reachable from the device (not `localhost` on Android or a physical phone). +EAS builds don't read `.env`: they use the project's EAS environment variables (expo.dev → project → Environment variables). Each build profile in `eas.json` names its environment (`development`, `preview` or `production`), so set `EXPO_PUBLIC_API_URL`, `EXPO_PUBLIC_SUPABASE_URL` and `EXPO_PUBLIC_SUPABASE_ANON_KEY` in each. Store builds need an `https://` API URL. + ### Build APK (for device testing) ```bash @@ -225,8 +227,6 @@ A cloud instance can't run a simulator. Use it for type-checking and linting, or [`packages/backend/railway.toml`](./packages/backend/railway.toml) builds with Nixpacks (`npm run build`) and starts `node dist/main`. Set the root directory to `packages/backend`, add the env vars above in Railway, and run `npx prisma migrate deploy` before or as part of each release. Railway's health check calls `GET /health`, which also checks the database. -**One migration waits for a deploy:** `20261105130000_drop_users_push_token` drops a column that Phase 2 servers read. Apply it only after Railway is running Phase 3 or later. - ### CI [`.github/workflows/ci.yml`](./.github/workflows/ci.yml) runs on every pull request and push to `main`: the backend job applies the migrations to a throwaway Postgres, checks they match the schema, and runs prettier, eslint, tsc, unit tests, database tests and the build; the mobile job runs tsc, eslint and unit tests. diff --git a/apps/mobile/eas.json b/apps/mobile/eas.json index d8b674e..123b163 100644 --- a/apps/mobile/eas.json +++ b/apps/mobile/eas.json @@ -7,12 +7,14 @@ "development": { "developmentClient": true, "distribution": "internal", + "environment": "development", "ios": { "resourceClass": "m-medium" } }, "preview": { "distribution": "internal", + "environment": "preview", "ios": { "resourceClass": "m-medium" }, @@ -22,6 +24,7 @@ }, "production": { "autoIncrement": true, + "environment": "production", "ios": { "resourceClass": "m-medium" }, diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 8a18793..83d5e21 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -78,12 +78,6 @@ display rounding. tests cover the feed, leaderboard, privacy, alerts, challenges, weight and quick foods. -### After deploying Phase 3 - -- Apply `20261105130000_drop_users_push_token` to Supabase. It removes - the old `users.pushToken` column, which Phase 2 servers still read, so - only apply it once Railway runs this version. - ## Phase 4 — Moat features and platform ✅ Chosen from [`MARKET_RESEARCH.md`](./MARKET_RESEARCH.md): the three