Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions apps/mobile/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"development": {
"developmentClient": true,
"distribution": "internal",
"environment": "development",
"ios": {
"resourceClass": "m-medium"
}
},
"preview": {
"distribution": "internal",
"environment": "preview",
"ios": {
"resourceClass": "m-medium"
},
Expand All @@ -22,6 +24,7 @@
},
"production": {
"autoIncrement": true,
"environment": "production",
"ios": {
"resourceClass": "m-medium"
},
Expand Down
6 changes: 0 additions & 6 deletions docs/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading