You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/api/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Copy `.env.example` to `.env` and set:
15
15
16
16
-`REDIS_URL` - direct Redis connection URL for the existing counter backend
17
17
-`PORT` - HTTP port (default `8080`)
18
-
-`SCRIPT_PATH` - path to the built browser script (default `../web/public/js/client.min.js`)
18
+
-`SCRIPT_PATH` - optional override for the browser script path used for `/js`
19
19
-`DEBUG` - set to `true` for debug logs
20
20
21
21
## Run
@@ -44,7 +44,8 @@ Build the local API image from the repo root:
44
44
pnpm api:docker:build
45
45
```
46
46
47
-
The image build includes the built browser script for `/js`, so the runtime container does not depend on a host-local `apps/web/public/js/client.min.js` path.
47
+
The image build includes the built browser script for `/js`, and the API uses that bundled copy automatically inside the container.
48
+
`SCRIPT_PATH` remains available as an override if you ever need to point at a different file.
48
49
49
50
## Docker Compose
50
51
@@ -57,6 +58,7 @@ pnpm api:compose
57
58
```
58
59
59
60
This uses `compose.yaml`, starts the published GHCR image from the repository root, and keeps using your existing Redis backend.
61
+
If you need to override the bundled `/js` file path for a one-off run, set `SCRIPT_PATH` in the shell before starting Compose.
60
62
61
63
The production-like Compose file uses:
62
64
@@ -73,6 +75,7 @@ pnpm api:compose:local
73
75
```
74
76
75
77
This uses `compose-local.yaml`, builds the API image locally, and wires the API container to `redis://redis:6379/0`.
78
+
It also defaults to the bundled in-image `/js` asset, with `SCRIPT_PATH` still available as a one-off shell override.
76
79
77
80
Stop the production-like Compose workflow from the repo root with:
0 commit comments